Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: UPA example

From: "Michael Kay" <mike@--------.--->
To: "'Pete Cordell'" <petexmldev@---------.--->, "'Boris Kolpackov'" <boris@-------------.--->, <xmlschema-dev@--.--->
Date: 6/26/2008 1:31:00 AM
> 
> So I take it that under the XSD 1.1 rules, the instance would 
> be valid and have particle assigment corresponding to:
> 
>  <apple/> validated by element
>  <apple/> validated by any
>  <apple/> validated by any
> 
> Rather than:
> 
>  <apple/> validated by element
>  <apple/> validated by any
>  <apple/> validated by element

No, I think it will take the first parse, because when the next element can
match either an element particle or a wildcard, the element particle will be
chosen.
> 
> Personally I think that, subject to occurrence constraints, 
> the particle that is currently gobbling up input, should have 
> priority (i.e. they're greedy).  That seems a lot easier to 
> implement, it's a lot easier for schema authors/users to 
> understand and has similarities to how regular expressions 
> behave. 

Then I suggest you make the suggestion as a comment on the last call spec
which has just been published.

I can't say I feel strongly about it. Which way is easier for implementors
will depend, as always, on the internal design of the implementation (and in
particular on how counters are implemented). I can see it being tricky to
formalize the notion of "the particle that is currently gobbling up input" -
or perhaps not, it might simply be a case of saying that in the event of an
element matching more than one particle, the preferred one is the particle
to which the previous element was attributed.

Michael Kay
http://www.saxonica.com/


From petexmldev@c... Thu Jun 26 09:07:55 2008
Received: from maggie.w3.org


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