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

RE: simplify XPath expression

Subject: RE: simplify XPath expression
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Wed, 21 Jan 2004 15:58:17 -0600
simplify an expression
> hi,
> i was thinking the following xpath could be simplified as it has 
> redundant infos. but somehow i cannot bring this to work:
> 
> 
> combilist/item/head[1][not(../date)]
> [not(../image) and count(../description)=1]			
> 		|
> combilist/item/head[2][not(../price)]
> [not(../image) and count(../description)=1]
> 
> 
> the second line in each member of the above union is the same 
> so i think 
> it must be possible to combine these. i tried
> 
> (
> 	combilist/item/head[1][not(../date)]
> 	|
> 	combilist/item/head[2][not(../price)]
> )
> [not(../image) and count(../description)=1]
> 
> but this does not work...

Can you specify in what way it does not work?
Is there an XPath syntax error?
Or does it give you an unexpected result?
If the latter, what result did you get?

Lars


 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.