[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Collecting attributes from the ancestor-or-self ax

Subject: Re: Collecting attributes from the ancestor-or-self axis
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Mon, 19 Nov 2001 12:29:19 +0000
Re:  Collecting attributes from the ancestor-or-self ax
Hi Oleg,

> <xsl:copy-of> copies nodes in document order, but if you are copying
> attributes, why do you care about any order?

In Adam's example, he was copying all the attributes from the
ancestors of the current node and the current node itself. He wanted
attributes nearer the current node to override the same-named
attributes from ancestors further away.

If you add two attributes with the same name to the same element, the
one that you add last is the one that gets included in the output. So
order *does* matter when you're copying attributes, if you're copying
several attributes of the same name.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.