M
mikea_59
Lets say I have some XML like this:
<AAA>
<BBB>
<b1>xx</b1>
<b2>xxx</b2>
</BBB>
<CCC>
<c1>z</c1>
</CCC>
</AAA>
And I want to write some XSL that will process the last node of the
root element - in this case <CCC>, ignoring all other nodes - in this
case <BBB>. I don't know the element names ahead of time so I can't use
them in the templates.
So my general question is, how do I write the expressions in the
select part of the xsl:apply-template element and/or, how do I write
the match part of the pattern in the xsl:template element?
<AAA>
<BBB>
<b1>xx</b1>
<b2>xxx</b2>
</BBB>
<CCC>
<c1>z</c1>
</CCC>
</AAA>
And I want to write some XSL that will process the last node of the
root element - in this case <CCC>, ignoring all other nodes - in this
case <BBB>. I don't know the element names ahead of time so I can't use
them in the templates.
So my general question is, how do I write the expressions in the
select part of the xsl:apply-template element and/or, how do I write
the match part of the pattern in the xsl:template element?