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

RE: UBL 2, W3C Schema extensibility, and multiple


ubl 2
At 2006-05-23 13:55 +0100, Michael Kay wrote:
> > >> > Does ##other imply ##local or does ##other require there be a
> > >> >target  namespace that is different in the particle?  If ##other
> > >> >implies  ##local then Xerces is wrong
>
>My interpretation of this is:
>...
>Clause 2.3 means that the null namespace (.absent.) does not match ##other.
>
>##local matches names that are not namespace-qualified (i.e. names in the
>null namespace).

So, though I do not need it anymore because I have the problem with 
multiple exclusions, the following should *not* have a particle ambiguity:

   <xs:complexType name="any-non-UBL">
     <xs:choice minOccurs="0" maxOccurs="unbounded">
       <xs:any namespace="##other" processContents="skip" 
minOccurs="0" maxOccurs="unbounded"/>
       <xs:any namespace="##local" processContents="skip" 
minOccurs="0" maxOccurs="unbounded"/>
     </xs:choice>
   </xs:complexType>

And Xerces interprets this correctly.

However, for UBL I have to use just:

   <xs:complexType name="extension">
     <xs:sequence>
       <xs:any namespace="##other" processContents="skip"
               minOccurs="0" maxOccurs="unbounded"/>
     </xs:sequence>
   </xs:complexType>

and make it a layered business rule that UBL-namespaced constructs 
(of the four namespaces) are not allowed as immediate children of the 
UBL extension point based on your earlier comment:

At 2006-05-23 13:24 +0100, Michael Kay wrote:
> > Now ... how best to enumerate a *list* of namespaces to be
> > excluded from a content model?
>
>I'm pretty sure you can't do that.
>
>Hence the rule that if two attribute wildcards exclude different namespaces,
>their intersection is "not expressible" (3.10.6)

Third subsection, 5th bullet ... thanks, Mike.  Now I can take this 
to the committee.

. . . . . . . Ken

--
Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16
Also for XSL-FO/XSLT training:    Minneapolis, MN 2006-07-31/08-04
Also for XML/XSLT/XSL-FO/UBL training: Varo,Denmark 06-09-25/10-06
World-wide corporate, govt. & user group UBL, XSL, & XML training.
G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


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.