[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
isXPath1 / isXPath2 -- not(/..)
- From: "Hermann Stamm-Wilbrandt" <STAMMW@de.ibm.com>
- To: xml-dev@lists.xml.org
- Date: Sat, 19 Dec 2015 15:12:10 +0100

More than a year ago Jonathan Robie tweeted on this nice XPath expression: false()=/..
The expression is true for XPath 1.0 and false for XPath 2.0. Therefore the expression can be named "isXPath1".
I cannot find his tweet anymore, nor my reply tweet with this minimal equivalent "isXPath1" expression: (4=5)=/..
I was not able to reduce the expression until today. Still above expression is minimal for "isXPath1", but a character can be reduced for "isXPath2": not(/..)
This expression is true for XPath 2.0 and false for XPath 1.0.
$ java net.sf.saxon.Query -qs:"(4=5)=/.." \!omit-xml-declaration=yes ; echo false $ java net.sf.saxon.Query -qs:"not(/..)" \!omit-xml-declaration=yes ; echo true $ java net.sf.saxon.Query 2>&1 | head -2 No query file name Saxon-HE 9.6.0.8J from Saxonica $
Mit besten Gruessen / Best wishes,
Hermann Stamm-Wilbrandt Compiler Level 3 support & Fixpack team lead IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃) https://www.ibm.com/developerworks/mydeveloperworks/blogs/HermannSW/ https://twitter.com/HermannSW/ https://stamm-wilbrandt.de/GraphvizFiddle/ ---------------------------------------------------------------------- IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294

[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
 |
Atom 0.3 |
 |
|
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|