I'm studying for an exam, and I'd like to make sure I'munderstanding this correctly. Would the following print out ABC or just BC because the templates weren't applied to next/previous/item?
input.xml :
<?xml version="1.0" encoding="UTF-8"?>
<next>
<previous>
<item>A</item>
</previous>
<item>B</item>
<item>C</item>
</next>
input.xsl :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<HowDoes>
<xsl:apply-templates select="next/item" />
<xsl:apply-templates select="previous/item" />
</HowDoes>
</xsl:template>
<xsl:template match="item">
<ThisWork>
<xsl:copy-of select="." />
</ThisWork>
</xsl:template>
</xsl:stylesheet>