Eve's right; XML spec doesn't require a fixed prefix.
And specifying a fixed prefix to associate with a given
namespace value seems to go against the XML spec's spirit of
having prefixes as mere "bins" to hold the namespace values.
On the other hand, some implementations do have (questionable)
"features" that for various reasons process fixed prefixes
(e.g. "xs" or "xsd") or are not that agile in managing
namespace dynamics. This situation might improve in time.
But having heard Eve's point, I agree with Eve's version,
but prepended with:
[R 107] If a fixed prefix is used, then the prefix should
be "xsd", and all W3C XML Schema constructs in UBL schema
modules must use the "xsd" namespace prefix, bound to
"http://www.w3.org/2001/xmlSchema".
Best Regards,
Chin Chee-Kai
SoftML
Tel: +65-6820-2979
Fax: +65-6743-7875
Email: cheekai@SoftML.Net
http://SoftML.Net/
On Wed, 16 Jul 2003, Eve L. Maler wrote:
>>Just wondering: Why is this rule needed? Does it matter what prefix is
>>used, particularly in a generated schema? We should be careful not to
>>give the impression that any namespace prefix is "magic".
>>
>>If the rule is indeed important for some reason, then it could be worded
>>a little more clearly, something like:
>>
>>[R 107] All W3C XML Schema constructs in UBL schema modules must use
>>the "xsd" namespace prefix, bound to "http://www.w3.org/2001/xmlSchema".
>>
>>(For each rule, it's useful to ensure that no "passive voice", implicit
>>or explicit, creeps in -- can the question "Who or what MUST act on this
>>rule?" be answered in every case? Is the vanilla UBL vs. customization
>>distinction made clearly?)
>>
>> Eve
>>
>>Lisa-Aeon wrote:
>>> *******************************
>>> [R 107] The XSD prefix MUST be used.
>>> (xmlns:xsd=http://www.w3.org/2001/xmlSchema)
>>>
>>> Note: Move to part of R1.
>>>
>>>
>>> ---
>>> Outgoing mail is certified Virus Free.
>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>> Version: 6.0.498 / Virus Database: 297 - Release Date: 7/8/2003
>>>
>>> You may leave a Technical Committee at any time by visiting http://www.oasis-open.org/apps/org/workgroup/ubl-ndrsc/members/leave_workgroup.php
>>
>>--
>>Eve Maler +1 781 442 3190
>>Sun Microsystems cell +1 781 354 9441
>>Web Technologies and Standards eve.maler @ sun.com
>>
>>
>>You may leave a Technical Committee at any time by visiting http://www.oasis-open.org/apps/org/workgroup/ubl-ndrsc/members/leave_workgroup.php
>>
>>