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

UBL 2, W3C Schema extensibility, and multiple


ubl 2
At 2006-05-23 12:00 +0100, 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.'

There are many ways to read the use of the commas 
and conjunctions in that sentence.  And all it is 
doing is describing the lexical limitations from 
the W3C Schema Part 1 spec section 3.10.2:

   namespace = ((##any | ##other) |
                 List of (anyURI | (##targetNamespace | ##local))
               )  : ##any

So it doesn't answer my question about the scopes 
of ##any and ##local and whether they conflict.

>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"/>

Fine ... I'm not trying to do that.

>The example shown that uses both ##other and ##local in a content
>model has a element in-between

Fine ... but that doesn't address my question:

>> > Date: Thu, 18 May 2006 09:35:26 +0200
>> > To: xmlschema-dev@w...
>> > From: "G. Ken Holman" <gkholman@C...>
>> > Subject: Question of reports of non-determinism
>> >...
>> > 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 ... otherwise these other tools are wrong.
>> >...
>> >    <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>

So, given that I'm not violating any lexical 
requirements for the value of the attribute, the 
question remains which of Xerces or other tools 
is correct in the interpretation of ##other at the same time as ##local.

Xerces believes there is no particle confusion, other tools believe there is.

Reading Schema part 1:

##any
   any
##other
   a pair of not and the ·actual value· of the 
targetNamespace [attribute] of the <schema> 
ancestor element information item if present, otherwise ·absent·.
otherwise
   a set whose members are namespace names 
corresponding to the space-delimited substrings of the string, except
     1 if one such substring is 
##targetNamespace, the corresponding member is 
the ·actual value· of the targetNamespace 
[attribute] of the <schema> ancestor element 
information item if present, otherwise ·absent·.
     2 if one such substring is ##local, the corresponding member is ·absent·.

With today's reading (it feels different each 
time I read the above), I'm thinking the TC 
cannot exclude the set of UBL namespaces because 
there are many namespaces in UBL that need to be 
excluded and I see that ##other only looks at the 
ancestral one, which is insufficient.

But I cannot see there is any way of saying "all 
namespaces other than the following four namespaces".

So we have a new problem other than particle 
conflict ... let's forget the above example of ##other and ##local ...

Now ... how best to enumerate a *list* of 
namespaces to be excluded from a content 
model?  I know how to do it in RELAX-NG, but not in XSD.

Oh, I know how to do it with Schematron, but I'm 
being asked for a W3C Schema pure solution.

Any suggestions?

. . . . . . . . . . . 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.