include id in snipet xsl
[idzebra-moved-to-github.git] / test / xslt / snippet.xsl
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2  version="1.0">
3 <!-- Identity transform stylesheet -->
4
5 <xsl:param name="snippet" select="''"/>
6 <xsl:param name="id" select="''"/>
7 <xsl:output indent="yes"
8       method="xml"
9       version="1.0"
10       encoding="UTF-8"/>
11
12  <xsl:template match="/">
13    <snippet>
14      <id><xsl:value-of select="$id"/></id>
15      <xsl:copy-of select="$snippet"/>
16    </snippet>
17  </xsl:template>
18
19 </xsl:stylesheet>