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

Brackets in XPATHS

Subject: Brackets in XPATHS
From: Edward.Middleton@xxxxxxxxxxx
Date: Wed, 13 Feb 2002 13:02:53 +0900
brackets in xpaths
 /xpath1/(xpath2|xpath3)/xpath3

I have two or more elements that are the same but that can apear in different places in the structure.
I tried the following form where

xpath1 = tag1/tag2[@attrib1='fads']/tag3[@attrib2='ahf']
xpath2 = tag4
xpath3 = tag5[1][attrib3='gf' and tag6/@attrib4 ='flk']
xpath4 = @attrib5

or

/tag1/tag2[@attrib1='fads']/tag3[@attrib2='ahf']/(tag4|tag5[1][attrib3='gf' and tag6/@attrib4 ='flk'])/@attrib5

but I get an error saying
Extra illegal tokens '(', 'tag4', '|', 'tag5','[','1',']','[','attrib3','=',''gf'', 'and', 'tag6','/','@','attrib4', '=',''flk'',']',')','/','@','attrib5'

Is this the correct way to specify two alternative sub paths.

Thanks in advance
Edward



 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.