Subject: Re: [xsl] Removing an XML Attribute From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 05 Jul 2007 16:47:01 -0400 |
>> <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)'.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Removing an XML Attribute, Tony Graham | Thread | RE: [xsl] Removing an XML Attribute, Michael Kay |
[xsl] Dealing with <![CDATA[]]> whe, cknell | Date | Re: [xsl] Dealing with <![CDATA[]]>, David Carlisle |
Month |