 |
 |
 |
Is it true to say that when an element is validated against a type (as
distinct from being validated against an element declaration - for =
example
when validating within xs:anyType content) then:
xsi:nil is allowed, and must (if present) be a valid boolean, but its
value is ignored.
In particular xsi:nil="true" is permitted but it neither allows nor =
requires
the content to be empty if the type itself does not permit empty =
content.
This seems to be what Validation Rule: Element Locally Valid (Type) is
saying, the relevant consideration being that "clause 3.2 of Element =
Locally
Valid (Element) (=A73.3.4) did not apply", because we were not =
validating
against an element declaration.
(Actually, I can't see a detailed chain of reasoning that allows me to
conclude that validation should fail if the attribute xsi:nil="fgjh" =
is
present, but I assume that in this case common-sense prevails.)
Test case elemZ033b is related, though in this case the instance is =
valid
whether xsi:nil is ignored or not.
Michael Kay
http://www.saxonica.com/
From mike@s... Sat Dec 09 23:19:20 2006
Received: from lisa
|
 | 

|  |
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.
|  |
| |
 |
 |
 |