Subject: RE: [xsl] the OTHER attributes with XPath From: Bodrul Haque <Bodrul.Haque@xxxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 16 Jul 2002 11:25:58 +0100 |
Sorry misread the question......judging by everyones answers. Cheers -----Original Message----- From: Bodrul Haque [mailto:Bodrul.Haque@xxxxxxxxxxxxxxxxxxxxxxx] Sent: 16 July 2002 11:10 To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: RE: [xsl] the OTHER attributes with XPath Hi Daniel, Try xpath: //PERSON[not(name(@NAME)='NAME')]/@* regards Bodrul -----Original Message----- From: Daniel N. Javastark [mailto:djavastark@xxxxxxxxxxxxxxxxxxxxxxxx] Sent: 16 July 2002 10:36 To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] 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 --------------------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any views or opinions presented in this Email message are solely those of the author and do not necessarily represent those of Synergy Logistics Limited unless specifically stated. Email communications are not necessarily secure and therefore Synergy Logistics Limited does not accept legal responsibility for the contents of this message. If you are not the intended recipient and have received this message in error, Please notify Synergy Logistics Limited immediately. Synergy Logistics Ltd. 01509 232706 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list --------------------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any views or opinions presented in this Email message are solely those of the author and do not necessarily represent those of Synergy Logistics Limited unless specifically stated. Email communications are not necessarily secure and therefore Synergy Logistics Limited does not accept legal responsibility for the contents of this message. If you are not the intended recipient and have received this message in error, Please notify Synergy Logistics Limited immediately. Synergy Logistics Ltd. 01509 232706 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] the OTHER attributes with, Bodrul Haque | Thread | [xsl] Re: the OTHER attributes with, Dimitre Novatchev |
RE: [xsl] the OTHER attributes with, Bodrul Haque | Date | Re: [xsl] the OTHER attributes with, David Carlisle |
Month |