this is a german Web-Mirror of MHONARC.ORG powered by Domainunion AG

[Top] [All Lists]

Re: [xsl] Proposed requirements for XSLT 3.0 try/catch and validation

2013-07-24 04:58:33

If the context element is assessed invalid (without consideration of its 
children), then validation fails and control falls into the xsl:catch. For 
example, below I misspelled Book (note the 3 o's) so validation fails and 
control falls into the xsl:catch where the XSLT program attempts to repair 

I'm not sure using validation like this is the right approach... if
you get a No from the Yes/No result of validation, you then have to
pass it through your 'repair' code to fix it up, then re-validate...
then what if it fails again?

Ultimately if you have the code to repair the value, then its that
same code that will also be used to ensure correctness of the value in
the first place - no need for XSD involvement at that stage.

Andrew Welch

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>