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

Re: conflicting attribute specification

Subject: Re: conflicting attribute specification
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 05 Mar 2013 10:44:34 -0500
Re:  conflicting attribute specification
At 2013-03-05 15:41 +0000, Ihe Onwuka wrote:
I have just encountered a stylesheet

<element url='bob'>
   <xsl:attribute name="url" select="'somethingotherthanbob'">
</element>

which should take precedence?

The last <xsl:attribute> instruction to be executed.


There are many sources of attributes, and the order applied to the result element node is:

  - first any xsl:use-attribute-sets= references
  - then any specified attributes
  - then any <xsl:attribute> instructions

The last value applied to a given attribute is the one that is used.

It is not possible to remove an attribute node from an element once one has been attached, but you can change its value.

Once you have added any children to the element you cannot change any of the attributes of that element.

I hope this helps.

. . . . . . . . Ken


-- Public XSLT, XSL-FO, UBL and code list classes in Europe -- Apr 2013 | Contact us for world-wide XML consulting and instructor-led training | Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm | Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ | G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ profile: https://plus.google.com/116832879756988317389/about | Legal business disclaimers: http://www.CraneSoftwrights.com/legal |

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.