OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[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

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]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS