Re: [xsl] sort problem

Subject: Re: [xsl] sort problem
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 4 Sep 2002 16:17:19 +0100
> Where am I making a mistake???		

here

<xsl:apply-templates select="@* | * ">

the * only selects elements, you want * | text() or node().
then you will pick up text nodes as well.

> to sort an xml document based on the
> node names & also, the attribute names...

Note you are sorting teh attribute nodes based on their name but this
may or may not have any effect on the way the document is output.
the system may output attributes in any order.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread