Re: [xsl] Ordering in XSL:Apply-Templates

Subject: Re: [xsl] Ordering in XSL:Apply-Templates
From: Matthieu Ricaud-Dussarget <matthieu.ricaud@xxxxxxxxx>
Date: Mon, 25 Oct 2010 12:38:15 +0200

Why not :

<!--  elements  to order first-->
<xsl:apply-templates select="given-names"/>
<xsl:apply-templates select="surname"/>
<!--  others elements -->
<xsl:apply-templates select="*[not(self::given-names or self::surname)]"/>

This is untested.
(I change "./surname" to "surname" because it's the same)


Le 25/10/2010 11:58, Ramkumar.V a icrit :
Thanks Pankaj,

I required to specify all the elements in the this template.

Without specifying the all elements, Is there any other way to order the output node?

<xsl:apply-templates select="./given-names"/>
<xsl:apply-templates select="./surname"/>
<xsl:apply-templates select="./degrees"/>

Note: All other input element order are the same in output except surname and given-names.



Matthieu Ricaud
Service Livre numirique

Current Thread