This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: sort problem
- From: Peter Davis <pdavis152 at attbi dot com>
- To: aruniima dot chakrabarti at iflexsolutions dot com, xsl-list at lists dot mulberrytech dot com
- Date: Wed, 4 Sep 2002 23:20:28 -0700
- Subject: Re: [xsl] sort problem
- References: <CBF6DBC01C62C64DA820DCFCD48E05C8AEFE33@fmg-nt.spz.i-flex.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
On Wednesday 04 September 2002 23:09, aruniima.chakrabarti@iflexsolutions.com
wrote:
> <xsl:apply-templates select="@*">
> <xsl:sort select="name()"
> data-type="text"/> </xsl:apply-templates>
If you want to be pedantic, the <xsl:sort> here doesn't matter, so you can
save a few CPU cycles by just doing:
<xsl:apply-templates select="@*"/>
The reason is because
<e a="1" b="2"/>
will be interpreted exactly the same as:
<e b="2" a="1"/>
by any compliant XML parser.
--
Peter Davis
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list