Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: the meaning of lax

From: "Michael Kay" <mike@--------.--->
To: "'Tobias Koenig'" <tobias.koenig@---------.--->, <xmlschema-dev@--.--->
Date: 2/5/2009 5:02:00 PM
The language is surprisingly informal for a specification, especially for
the XSD specification, and I guess someone thought that would be helpful!

Case 1b means that the instance is invalid, as a consequence of the rule "if
there is a declaration, the instance MUST by valid with respect to it".

Actually, it's not the "don't worry" that I find difficult, it's the first
half of the sentence. It confuses "declaration" and "definition", for a
start. And what does "uniquely determined" mean - does it mean that if there
are two possible declarations, you don't validate? Where does xsi:type come
into it?

Perhaps the bottom line is that this section is really only telling you that
there are three values for {process contents} and giving you a very rough
idea of what they mean. The actual rules for validating an instance are in
3.10.4. Or at any rate, they should be. Now you mention it, I'm having
difficulty finding the relevant rule...

Michael Kay


> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Tobias Koenig
> Sent: 21 January 2009 16:37
> To: xmlschema-dev@w...
> Subject: the meaning of lax
> 
> 
> Hej,
> 
> in schema spec 1.1 'lax' is defined as
> 
> 	If the item has a uniquely determined declaration 
> available, it must be .valid. with respect to that definition,
>         that is, .validate. if you can, don't worry if you can't.
> 
> I don't know if it is just me as a non-native speaker, but 
> somehow that sentence confuses me...
> Let's say there is an element that matches a wildcard that 
> has processContents 'lax'.
> 
> 1) if I find a declaration for that element and
> 
> 	a) can validate it successfully -> everything ok
> 
> 	b) can not validate it successfully -> ?!?
> 
> 2) if I cannot find a declaration for that element
> 
> 	-> everything ok
> 
> What happens in case a 1b? Could the sentence in the spec 
> maybe rephrased?
> 
> Ciao,
> Tobias
> 


From mike@s... Fri Feb 06 11:20:44 2009
Received: from maggie.w3.org ([193.51.208.68])
	by fri


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