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

Re: Re: [ubl-dev] UBL 2.0 and Schema Extensibility


ubl 2.0 spec
Fraser Goffin wrote:
>> Basically it seems to me that the question as to whether it is
>> nondeterministic revolves on whether local is within other,
>
> Quoting from 'Essential XML Quick Reference - Skonnard/Gudgin' when
> describing the xs:any namespace attribute value :-
>
> '.. The value of this attribute is either the string ##any, the string
> ##other, or a list of namespace URIs, and/or the string
> ##targetNamespace and/or the string ##local.'
>
> Hence it is not legal to include both of them on a single xs:any. E.g.
> this is not legal AFAIK :-
>
> <xs:any namespace="##other ##local" minOccurs="0"/>

The above description is ambiguous, and there is an interpretation of  
it according to which the above namespace attribute value is legal.  
The description would be better written as

   '.. The value of this attribute is either:
     1. the string ##any, or
     2. the string ##other, or
     3. a list of one or more of:
       a. a namespace URI
       b. the string ##targetNamespace
       c. the string ##local'

which is more accurate to the specification (XML Schema Part  
1:3.4.2), although even the specification looks odd (redundant  
parentheses etc which suggest that this was not the intended  
interpretation either).
-- 
ç?¬ Chris Burdess
   "They that can give up essential liberty to obtain a little safety
   deserve neither liberty nor safety." - Benjamin Franklin




This is a digitally signed message part


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.