Re: [xsl] instance-of schema-element

Subject: Re: [xsl] instance-of schema-element
From: John Snelson <john.snelson@xxxxxxxxxx>
Date: Fri, 14 Mar 2008 17:48:08 +0000
Andrew Welch wrote:
lax validation will validate the element if a definition is found to
validate it against... so because a definition is there, lax will
behave the same as strict wouldn't it?

That wasn't how I understood lax validation, but checking the relevant specs confirms that you're correct.


It would seem useful to have a validation mode that assigned a type of xs:anyType to an element that failed validation - raising errors is such a drastic measure to resort to in a language without the ability to trap those errors.

John

--
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:        http://www.oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net

Current Thread