Re: [xsl] sort by attribute text

Subject: Re: [xsl] sort by attribute text
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 26 Mar 2002 14:18:13 -0500

David missed one teeny detail in his fix: matching on "/" and for-each select="*" will still select just one element (the document element).

Better match on the document element, or whatever other element contains the node set you want to sort.


At 12:57 PM 3/26/2002, David wrote:

 <xsl:for-each select=".">

. selects a node set consisting of one node, so it doesn't matter what
you sort on, since you are only sorting one thing it will come out as it
went in.


<xsl:template match="*">
 <xsl:for-each select=".">


<xsl:template match="/">
 <xsl:for-each select="*">

Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML

XSL-List info and archive:

Current Thread