<xslTutorial creator="nicmila@idoox.com">
<index keywords='xsl:include xsl:import'/>
<description>Results of stylesheet combining depends on the position of xsl:include or xsl:import.
</description>
<xmlSource id="id1">
<AAA/>
<BBB/>
<CCC/>
</xmlSource>
<attValues>
<value match=''></value>
</attValues>
<xslStylesheet id="id2">
<xsl:template match="/*/*">
<DIV style="color:red">
<xsl:value-of select="name()"/>
<xsl:text> (according to Stylesheet 1 (id2.xsl)</xsl:text>
</DIV>
</xsl:template>
</xslStylesheet>
<xslStylesheet id="id3">
<xsl:include href="id2.xsl"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/*/*">
<DIV style="color:blue">
<xsl:value-of select="name()"/>
<xsl:text>(according to this stylesheet)</xsl:text>
</DIV>
</xsl:template>
</xslStylesheet>
<xslStylesheet id="id4">
<xsl:import href="id2.xsl"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/*/*">
<DIV style="color:blue">
<xsl:value-of select="name()"/>
<xsl:text>(according to this stylesheet)</xsl:text>
</DIV>
</xsl:template>
</xslStylesheet>
<xslStylesheet id="id5">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/*/*">
<DIV style="color:blue">
<xsl:value-of select="name()"/>
<xsl:text>(according to this stylesheet)</xsl:text>
</DIV>
</xsl:template>
<xsl:include href="id2.xsl"/>
</xslStylesheet>
<xslStylesheet id="id6">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/*/*">
<DIV style="color:blue">
<xsl:value-of select="name()"/>
<xsl:text>(according to this stylesheet)</xsl:text>
</DIV>
</xsl:template>
<xsl:import href="id2.xsl"/>
</xslStylesheet>
</xslTutorial>