Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Fall back for missing xsi:type?

From: Kevin Braun <kbraun@-------.--->
To: xmlschema-dev@--.---
Date: 10/6/2009 8:49:00 PM
Hello,


Can anyone explain the following comment from the "changes since" in XSD 
1.1?

"When an |xsi:type| attribute appears on an element, and has a QName as 
its value, but the QName does not resolve to a known type definition, 
processors are now required to "fall back" to lax validation, using the 
declared {type <http://www.w3.org/TR/xmlschema11-1/#ed-type_definition>
definition} <http://www.w3.org/TR/xmlschema11-1/#ed-type_definition> of 
the ·governing element declaration· 
<http://www.w3.org/TR/xmlschema11-1/#key-governing-ed> as the ·governing 
type definition· 
<http://www.w3.org/TR/xmlschema11-1/#key-governing-type-elem>."



First, I believe that lax validation is by definition against 
xs:anyType, so I'm not sure what it means to do lax validation using 
some other type.

Second, such a case as is being described violates rule 4 of Element 
Locally Valid (Element) (§3.3.4.3) 
<http://www.w3.org/TR/xmlschema11-1/#cvc-elt> (the instance-specified 
type definition would be absent), and I don't see where there is any 
exception made to it.  There is some verbiage (in §3.3.4.3) about what 
happens to the governing type declaration in this case, but I don't 
think this verbiage is giving an exception to rule 4 (I assume it is 
summarizing the application of the definition of "governing type 
declaration").

Schema-Validity Assessment (Element) (§3.3.4.6) 
<http://www.w3.org/TR/xmlschema11-1/#cvc-assess-elt> does give a 
requirement for lax assessment according to xs:anyType, but I don't 
think it applies here because the situation described doesn't prevent 
assessment - it just has "invalid" as the outcome.  Besides that, the 
type to use for the lax assessment doesn't agree with the statement I 
quoted.

So, in short, I don't know what to make of the above statement.  Can 
anyone point me to where the "fall back" requirement can be found?

Thanks,

--
Kevin Braun
Objective Systems, Inc.
http://www.obj-sys.com





transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent