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

RE: the OTHER attributes with XPath

Subject: RE: the OTHER attributes with XPath
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Tue, 16 Jul 2002 11:01:31 +0100
name xpath
Hi.
You could use PERSON/@*[not(name()='NAME')]
Hope that this help you.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Daniel N.
Javastark
Sent: Tuesday, July 16, 2002 10:36 AM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  the OTHER attributes with XPath


Hi, I'm trying to pull off all the OTHER attributes than one with a
particular name from, for example, this xml snippet:

<PERSON NAME="JUAN LUIS" UNIQUEID="A" HEIGHT_CATEGORY="2" SEX="M">

Let's say I want to get all the attributes except for "NAME":
"UNIQUEID", "HEIGHT_CATEGORY", and "SEX".

I can pull off the "PERSON" node which contains an attribute named
"NAME":

	xpath: //PERSON[name(@NAME)='NAME']

or any "PERSON" node that does NOT contain the attribute "NAME":

	xpath: //PERSON[not(name(@NAME)='NAME')]

or all the attributes of "PERSON":

	xpath: //PERSON/@*

but I don't know how to get all the attributes except "NAME".

Is there any way to do this?  In XSL using or programatically I can do
it by iterating through the attributes, of course, but if there's a way
to do it with XPath, great.

Thanks,
Dan



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.