Subject: Re: match all attributes except @foo
From: "Jeff Moss" <jeff@xxxxxxxxxxxx>
Date: Thu, 8 Apr 2004 18:51:07 -0700
|
<xsl:apply-templates select="node() | @*[!(name() = 'foo')]" />
...or something like that
-Jeff
----- Original Message -----
From: "Mark Lundquist" <ml@xxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, April 08, 2004 4:51 PM
Subject: match all attributes except @foo
>
> I'm sure I will say 'doh!' when I see the answer to this one :-), but...
>
> I currently have this inside an <xsl:copy>:
>
> <xsl:apply-templates select="node() | @*" />
>
> The second branch of that union selects all attributes. I want to
> change it so that it matches all attributes except for the attribute
> 'foo'.
>
> IOW, my <xsl:copy> should filter out @foo. How do I do it?
>
> Thanks a lot,
> mark
|