Subject: Re: [xsl] sort by attribute text From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 26 Mar 2002 14:18:13 -0500 |
Cheers, Wendell
<xsl:for-each select="."> <xsl:sort
. 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.
change
<xsl:template match="*"> <xsl:for-each select=".">
to
<xsl:template match="/"> <xsl:for-each select="*">
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] sort by attribute text, David Carlisle | Thread | Re: [xsl] sort by attribute text, Mike Ferrando |
RE: [xsl] Best practice question, r, Joshua Allen | Date | RE: [xsl] using substring-functions, Wendell Piez |
Month |