xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] catching the last node still satisfying a condition


Subject: Re: [xsl] catching the last node still satisfying a condition
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 13 Sep 2001 16:00:26 +0100

> If we agree the final result is an ordered (meaning indexed access, as in an 
> array) set (meaning no duplicate) of nodes. Right ?

No. The result of an XPath select is always unordered (hence set). All
these sets are subsets of an ordered set of nodes, but individual
selections do not have an order. So for example
in 
ancestor::[2]
2 selects the second ancestor in reverse order but
<xsl:variable name="a" select="ancestor::*"/>
$a is just the unoordered set of nodes: it doesn'r "remember" that it
was collected in any particular 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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor