My xml code(example)
Code:
<orderprice>
<orderstack>
<order>
<ord1>
120
</ord1>
<ord2>
130
</ord2>
</order>
</orderstack>
<orderamt>
<order>
<ordprice1>
440
</ordprice1>
<ordprice2>
450
</ordprice2>
</order>
</orderamt>
</orderprice>
I have 2 templates as below.
Code:
<xsl:template match ="order/*">
<!--something--!>
</xsl:template>
<xsl:template match ="ordprice1">
<!-- different rules than first template--!>
</xsl:template>
The problem is that when I use
<xsl:apply-templates select="order/*" />
it never invokes the 2nd template. Since the contents of order can keep changing, I need to use "order/*". How can I invoke 2nd template.