<xslTutorial creator="nicmila@idoox.com">
<index keywords='// /'/>

<description>With XSL you can freely modify any source text. <stylesheet id="id4"/> and <stylesheet id="id5"/> produce different output from the same source file.</description>

<xmlSource id="id3">
<title>XSL</title>
<author>John Smith</author>
</xmlSource>

<attValues>
<value match="//title">matches any title element anywhere in the document.
</value>
<value match="//author">matches any author element anywhere in the document.
</value>
<value match="/">matches the root element.
</value>
</attValues>

<xslStylesheet id="id4">
<xsl:template match="/"> 
<H1><xsl:value-of select="//title"/></H1>
<H2><xsl:value-of select="//author"/></H2>
</xsl:template>
</xslStylesheet>

<xslStylesheet id="id5">
<xsl:template match="/">
<H2><xsl:value-of select="//author"/></H2>
<H1><xsl:value-of select="//title"/></H1>
</xsl:template>
</xslStylesheet>

</xslTutorial>