[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Filtering out a specific attribute


Subject: Re: [xsl] Filtering out a specific attribute
From: Vyacheslav Sedov <vyacheslav.sedov@xxxxxxxxx>
Date: Mon, 9 Nov 2009 17:03:16 +0300

"Heading/(@* except @id)" much better ;)


2009/11/9 Martin Honnen <Martin.Honnen@xxxxxx>:
> Mark Wilson wrote:
>
>> I know that <xsl:copy-of select="Heading/@*"/> copies all of the
>> attributes. How do I copy all the attributes except a specific one, say:
@id
>> ?
>
> With XSLT 2.0 you can literally write that
> B <xsl:copy-of select="Heading/@* except Heading/@id"/>
>
> --
>
> B  B  B  B Martin Honnen
> B  B  B  B http://msmvps.com/blogs/martin_honnen/


Current Thread
Keywords