|
Subject: Using node-sets in reverse document order? From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx> Date: Sat, 10 Jul 1999 13:44:34 -0400 (EDT) |
The ancestor, ancestor-or-self, preceding, and preceding-sibling axes
contain nodes in reverse document order. How is it possible to
iterate over the nodes in that order when xsl:for-each processes nodes
in document order and xsl:sort sorts on string value, not document
order?
How can I do something like the following that will order the selected
nodes in reverse document order?
<xsl:for-each select="from-ancestors(node())">
<p>Element: <xsl:value-of select="qname()"/></p>
</xsl:for-each>
Regards,
Tony Graham
======================================================================
Tony Graham mailto:tgraham@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9632
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: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: New XSLT draft, Alistair MacDonald | Thread | Re: Using node-sets in reverse docu, G. Ken Holman |
| New XSLT draft, James Clark | Date | Re: Using node-sets in reverse docu, G. Ken Holman |
| Month |