Re: [xsl] copy all attributes but one

Subject: Re: [xsl] copy all attributes but one
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Thu, 18 Jan 2001 16:38:04 +0000
David C. wrote:
>> up against prefixed attributes, like xlink:href,
> the canonical example!
> (also of course in the simplified XSL syntax you have documents with
> attributes in the XSL namespace, xsl:version for example)

Good point; I guess you'd quite often want to filter those out:

  <xsl:copy-of select="@*[count(.|../@xsl:*) != count(../@xsl:*)]" />

The *bad* examples are attributes from the XML namespace, since the
'xml' prefix is always bound to that namespace.



Jeni Tennison

 XSL-List info and archive:

Current Thread