Hello.
Im trying to match only one of each node with a generic match. Can this be done generic at all? I would have prefered to just match one of each node with the same local-name()
<xsl:variable name="xmltree">
<node />
<anothernode />
<node />
<anothernode />
<unknown />
<anothernode />
<node />
<unknown />
</xsl:variable>
<xsl:template match="/">
<xsl:apply-templates select="$xmltree/*" mode="MODULE"/>
</xsl:template>
<xsl:template match="*" mode="MODULE" /> <!-- EMPTY MATCH -->
<xsl:template match="node[1]|anothernode[1]|unknown[1]" mode="MODULE">
<!-- Do something -->
</xsl:template>