xsl-list
[Top] [All Lists]

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

2010-10-25 05:38:30
Hello,

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)

Cheers

Le 25/10/2010 11:58, Ramkumar.V a écrit :
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.

Regards,

Ramkumar


--
Matthieu Ricaud
IGS-CP
Service Livre numérique



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--