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

Re: Removing an XML Attribute

Subject: Re: Removing an XML Attribute
From: Tony Graham <Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 05 Jul 2007 20:58:40 +0100
Re:  Removing an XML Attribute
On Thu, Jul 05 2007 16:58:14 +0100, wapiez@xxxxxxxxxxxxxxxx wrote:
> At 07:11 PM 7/4/2007, was written:
...
>>Try just:
>>
>>    <xsl:copy-of select="@*[not(self::change)]"/>
>
> I'm afraid this isn't going to work, on account of attribute elements
> not appearing on the self:: axis. (A small but significant wrinkle.)

Or is it that an attribute node is on the self:: axis when it is the
context node but you can't select it using a name test?

Another small but significant wrinkle is that 'self::change' works in
xsltproc.

However, updating to use XSLT 2.0, this gets the blessing of Saxon:
'self::attribute(change)'.

Regards,


Tony.
======================================================================
Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx   http://www.menteithconsulting.com

Menteith Consulting Ltd             Registered in Ireland - No. 428599
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
----------------------------------------------------------------------
Menteith Consulting -- Understanding how markup works
======================================================================

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.