[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: UBL 2, W3C Schema extensibility, and multiple
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|