-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Labels
EnhancementA change or improvement to an existing featureA change or improvement to an existing featureXPathAn issue related to XPathAn issue related to XPathXQueryAn issue related to XQueryAn issue related to XQueryXSLTAn issue related to XSLTAn issue related to XSLT
Description
I notice I added an example pattern to the draft XSLT4 spec match=".[. castable as xs:date][xs:date(.) le current-date()]" which is incorrect because processors are allowed to change the order of predicates, so you can't use the first predicate as a guard to stop the second predicate throwing an error. I've seen users fall over this (Saxon does sometimes reorder predicates). My instinct is to ban reordering of predicates; if you want to allow it, you can use the "and" operator. An alternative would be an "and" operator (say "and-also") with explicit ordering semantics, as in XPath 1.0.
rhdunn, namedgraph and yuri1969
Metadata
Metadata
Assignees
Labels
EnhancementA change or improvement to an existing featureA change or improvement to an existing featureXPathAn issue related to XPathAn issue related to XPathXQueryAn issue related to XQueryAn issue related to XQueryXSLTAn issue related to XSLTAn issue related to XSLT