Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Validating XPath queries [Thread Next] RE: Validating XPath queriesTo: "'Paul Steckler'" <Paul.Steckler@-----.---.-->, <xmlschema-dev@--.---> Date: 5/15/2009 9:24:00 AM > > Does anyone know of a tool that validates XPath queries > against XML schemas? For a given schema, a query is valid if > there exists a document valid in the schema for which the > query returns at least one result. Sure, Saxon-SA does this as part of schema-aware XSLT and XQuery processing, and the functionality could be packaged to do what you are asking. Well, it does almost this: Given an XPath expression and a schema type (typically a complex type), Saxon will tell you whether the expression is capable of selecting anything when applied to a context node of that type. > > I've seen mention on this list of XPath somehow > incorporated into XML Scheme 1.1. Does that capability > obviate the value of such a tool? > No, the fact that XSD uses XPath for defining assertions doesn't directly help with your requirement. Michael Kay http://www.saxonica.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
