Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: UPA example

From: "C. M. Sperberg-McQueen" <cmsmcq@---.--->
To: Boris Kolpackov <boris@-------------.--->
Date: 7/1/2008 7:59:00 AM
On 25 Jun 2008, at 01:59 , Boris Kolpackov wrote:
> ...
> Radu Preotiuc-Pietro <radup@b...> writes:
>
>> Maybe it's also interesting to mention that, while in XML Schema  
>> 1.1 the
>> Schema becomes valid, the instance
>>
>> <apple/>
>> <apple/>
>> <apple/>
>>
>> won't be valid still (based on my understanding, the third <apple/>
>> element will map to the element particle and the validator will  
>> still be
>> waiting for an element to map to the wildcard).
>
> Yes, I also think it won't be valid unless the parser in 1.1 is  
> expected
> to do backtracking. I am also wondering if the authors of this  
> change to
> the spec considered how hard it will be to explain something like this
> to a user.

Speaking for myself, yes, but in this case I am not entirely certain
what aspects of the example are important for 'something like this'.

I think explaining things to users would be somewhat simpler if
we lost the Unique Particle Attribution rule entirely, but I have
not succeeded in persuading the rest of the working group.

As regards this particular example, though, I may be missing
something; it doesn't seem to me hard to explain that when you
have a content model which

   1 allows an infinite number of repetitions of subsequences
   2 starts a new subsequence each time an 'apple' element would
     be the third element, or later, in a subsequence
   3 requires each subsequence to have two or more elements

then a sequence of three 'apple' elements is not valid.

If the user is surprised by the fact that some apple elements match
the wildcard, not the element declaration, then perhaps the wildcard
is overbroad and should exclude 'apple'?  If the user is surprised
by the fact that the wildcard does not capture all 'apple' elements
after the first, then perhaps the outer sequence ought not to be
repeatable?

--Michael Sperberg-McQueen
   World Wide Web Consortium / MIT CSAIL



From cmsmcq@a... Tue Jul 01 20:09:39 2008
Received: from maggie.w3.org ([193.51.208.


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