summaryrefslogtreecommitdiff
path: root/tests/XSLTMark/find.xsl
blob: 6943aa07a7eea889a7767f0985be0863505aa202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0"?> 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output encoding="utf-8"/>
  <xsl:template match="element[@needle=1]">
    <found>
      <xsl:apply-templates/>
    </found>
  </xsl:template>

  <xsl:template match="element">
    <element>
      <xsl:apply-templates/>
    </element>
  </xsl:template>

</xsl:stylesheet>