[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: UPA and schema handling


ignore upa schema
Michael Kay wrote:

>>It's also obvious that a processor using schema to build a 
>>code model is 
>>  able to ignore UPA and still get its work done.
>>
>>    
>>
>
>Only if its work is confined to giving a yes/no answer to the validity
>question.
>
>If the work is to associate types with individual element instances, then
>UPA is rather important.
>
>  
>
There are two things that deserve to be mentioned.

--> Firstly, a simple example involving derivation-by-extension Suppose 
you were allowed to use arbitrary regular expressions (I use short 
notation instead of XML Schema).
type Foo = A*
type Bar extends Foo = A*.

An element of type Bar contains something like A*A*, because derivation 
by extension means "append it at the right end".
And now, there is no way to know which of the A's in a valid instance 
belong to Foo and which to Bar.

This looks strange at first but may turn into a problem if somebody 
extends Foo without knowing (or having control over) what its content 
model is.

--> Secondly, it is possible to rewrite every regular expression in a 
(huge and incomprehensible) form that goes through that so-called UPA 
constraint. This can of course only happen on one level, i.e. no 
derivation by extension involved.

Document-afficionados and everybody who hates UPA, have a party now!  
(at least those who did not yet switch to Relax NG:-)

cheers,
Burak

http://lamp.epfl.ch/~buraq

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.