So I'm using the identity design pattern for XSLT:
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()[not(@visible='false')]"/>
</xsl:copy>
</xsl:template>
And I do have many templates matching different nodes. Now what I want to do is generate some code inside one xsl:template and let another xsl:template match the newly generated code. Anyone who have any idea how to do this?
Example of what I want to do:
<xsl:template match="button">
<a href="@url" class="button"> <xsl:value-of select="@name" /> </a>
</xsl:template>
<xsl:template match="stuff">
<!-- do some stuff -->
<!-- get this following line parsed by the template over! -->
<button url="something" name="a button" />
</xsl:template>