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

Re: Function for determining one XPath as subset of a

Subject: Re: Function for determining one XPath as subset of another
From: "Adam Retter adam.retter@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Jan 2016 17:34:04 -0000
Re:  Function for determining one XPath as subset of  a
> even given your easy example
>
>
> 1. //w
>
> 2. /x/y/z/w[@a = 'v']
>
>
> if y is a place holder for an xpath expression rather that just literally
> matching the element y then
> it isn't always a subset, consider
>
> /x/doc('y.xml')/z/w[@a = 'v']
>
> conversely
>
> /x/y/z/w[@a = 'v'] and /x/y[1+1=2]/z/w[@a][upper-case(@a)= 'V']
>
> do select the same sets but to know that you have to be able to prove that
> arbitrarily complicated xpath boolean expressions are true which isn't
> likely to be possible.

Thanks David, I did realise that, I am only looking at simple path
expressions with predicates where the expressions can be determined
statically by only parsing them. So in my instance 'y' would always be
the element named `y`.


-- 
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk

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.