xsl-list
[Top] [All Lists]

Re: match all attributes except @foo

2004-04-08 18:51:07
 <xsl:apply-templates select="node() | @*[!(name() = 'foo')]" />

...or something like that

-Jeff

----- Original Message ----- 
From: "Mark Lundquist" <ml(_at_)wrinkledog(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Thursday, April 08, 2004 4:51 PM
Subject: [xsl] 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


--+------------------------------------------------------------------
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>