[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Be careful writing XPath expressions when the XMLcould have non-existent elements
- From: Liam R E Quin <liam@w3.org>
- To: xml-dev@lists.xml.org
- Date: Wed, 30 Jul 2014 18:57:31 -0400
On Wed, 30 Jul 2014 12:39:03 -0400
John Cowan <johnwcowan@gmail.com> 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/
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]