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

RE: xpath not..

Subject: RE: xpath not..
From: "Fu, Gwowen" <gfu@xxxxxxxxxxxxxxx>
Date: Mon, 20 Nov 2000 11:45:41 -0600
xpath not
Could you try

select="adress[child::*] and not [child::street]"

Just change "or" to "and".

Have a good day!

Gwowen

-----Original Message-----
From: Michael Hoffmann [mailto:m-hoffmann@xxxxxx]
Sent: Monday, November 20, 2000 9:25 AM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: xpath not..


i have a question about selecting nodes of my xml file.
in my xml file i have sth like

...
<name>firstname</name>
<lastname>firstlastname</lastname>
<street>firststreet</street>
<city>firstcity</city>
...

how can i say sth like
select name, lastname and city but NOT street
i tried it with select="adress[child::*] | not [child::street]"

but it didnt work...
do i have to say sth like select="adress[child::name] |
[child::lastname] | [child::city]"
to select each entry i want to select or are there shorter solutions ?
(in my xml file there are much more entrys than just those 4...)

in the faqs i saw select statements with "not" but mostly to not select
attributes or values...

thanx for ur help

michael


oh btw...
thx mike (kay) your solution with the javascript worked fine (for sure
:-) 
just didnt saw that solution (i tried to make it more complex ...<g>)


 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.