By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

XSD: How to validate that an XPath expresison returns a 'valid' nodeset

P: n/a
Hi,

In my XML dialect I got elements on the form of XPath expressions,
which refer to nodesets located in other fragments in the same
document. Is there a way to validate that the XPath expression actually
evaluates to what I expect (e.g. expected element names)?

I can easily write a script which does the job, but would be happy to
solve the problem with XSD, XSL or another 'standard' tool.

Thank you,
Svenn

Mar 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a


ssvendsen wrote:
In my XML dialect I got elements on the form of XPath expressions,
which refer to nodesets located in other fragments in the same
document. Is there a way to validate that the XPath expression actually
evaluates to what I expect (e.g. expected element names)?

I can easily write a script which does the job, but would be happy to
solve the problem with XSD, XSL or another 'standard' tool.


Schematron allows you to use XPath expressions to make assertions on
your document. I don't think XSD can help.
<http://www.schematron.com/>
Schematron is often implemented with the help of XSLT stylesheets.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Mar 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.