[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: match all attributes except @foo

Subject: Re: match all attributes except @foo
From: "Jeff Moss" <jeff@xxxxxxxxxxxx>
Date: Thu, 8 Apr 2004 18:51:07 -0700
xsl match all
 <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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.