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] Collecting attributes from the ancestor-or-self axis


Subject: Re: [xsl] Collecting attributes from the ancestor-or-self axis
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 19 Nov 2001 11:58:36 GMT

> I believe this works as follows:
more or less, yes.


> 1. the select in copy-of returns a node-set in document order.  At this
> point the node set has duplicate attribute names.

As I've said so often on this list that even Jeni's started saying it,
set's don't have an order. So the select just selects the set of nodes.

Howver copy-of, in common with all other result building operations
in xslt, processes the nodes in the set in document order, and so:

> 2. when copy-of applies these attributes to the output element, the
> duplication is removed by succeeding attribute nodes overwriting the values
> of any attributes that are already present.


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