Re: [xsl] Removing an XML Attribute

Subject: Re: [xsl] Removing an XML Attribute
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 05 Jul 2007 16:47:01 -0400
Hi,

At 03:58 PM 7/5/2007, you wrote:
>>    <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?

Indeed. :->


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

Mmrph.


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

Yes, or like David did it.


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