xsl-list
[Top] [All Lists]

Re: [xsl] Removing an XML Attribute

2007-07-06 06:57:33
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(_at_)mulberrytech(_dot_)com
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
======================================================================


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>