Order of node parsing
Hello all!
I have different nodes which appear in different order, like:
<A ...>
...
</A>
<B ...>
...
</B>
<A ...>
...
</A>
and so one. How can I make the processor go through all the A nodes first (thus displaying them first), then go through nodes B and displaying them, and so one. Currently, it displays A, B, A, etc.
In my XSL file I have something like:
<xsl:template match="/">
<xsl:apply-templates select="//A|//B"/>
</xsl:template>
I'm using XSLT 2.0 and Saxon.
Best regards,
Fred
|