Next in thread → Next in month →

Re: [xml-dev] Be careful writing XPath expressions when the XML could have non-existent elements

From
Liam R E Quin <>
To
Date
2014-07-30T22:57:31Z
ID
<>
Thread
Re: [xml-dev] Be careful writing XPath expressions when the XML could have non-existent elements
On Wed, 30 Jul 2014 12:39:03 -0400
John Cowan <> wrote:
[...] what I could see would be an XSLT feature to make it an
> error
> to match against a path that matches nothing.  There would need to be a way
> to turn this on and off selectively, of course.

A schema-aware XSLT 2 (or 3) processor may be able to provide a warning. It's easier to imagine how to implement such a warning in the simple child::* step a/b/c than with arbitrary expressions, though.

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Next in thread → Next in month →