OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

ebxml-msg message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: RE: [ebxml-msg] xml namespace


I thought as you did, but then I went to the namespace (click on the link) and I
found this:

	<documentation>This schema defines attributes and an attribute group suitable
for use by schemas wishing to allow xml:lang or xml:space attributes on elements
they define. To enable this, such a schema must first declare the XML namespace,
and then import this schema for the XML namespace, e.g. as follows: <schema . .
. xmlns:xml="http://www.w3.org/XML/1998/namespace"> . . . <import
schemaLocation="http://www.w3.org/2000/10/xml.xsd"/> Subsequently, qualified
reference to either of the attributes or the group defined below will have the
desired effect, e.g. <type . . .> . . . <attributeGroup ref="xml:specialAttrs"/>
will define a type which will schema-validate a instance element with both
xml:space and xml:lang attribute</documentation>

The documentation above says ". . .such a schema must first declare the XML
namespace. . ."

So now I am confused.  Which way is right?  If some parsers understand "xml:"
and some don't, then this won't work.



-----Original Message-----
From: Arvola Chan [mailto:arvola@tibco.com]
Sent: Wednesday, October 31, 2001 2:44 PM
To: David Fischer; Cliff Collins; ebxml-msg
Subject: Re: [ebxml-msg] xml namespace

More excerpt from http://www.w3.org/TR/REC-xml-names/

Namespace Constraint: Prefix Declared
The namespace prefix, unless it is xml or xmlns, must have been declared in
a namespace declaration attribute in either the start-tag of the element
where the prefix is used or in an an ancestor element (i.e. an element in
whose content the prefixed markup occurs). The prefix xml is by definition
bound to the namespace name http://www.w3.org/XML/1998/namespace. The prefix
xmlns is used only for namespace bindings and is not itself bound to any
namespace name.

My reading of the above paragraph is that it is not necessary to add
the line


to the schema.


-----Original Message-----
From: Arvola Chan <arvola@tibco.com>
To: David Fischer <david@drummondgroup.com>; Cliff Collins
<collinsc@sybase.com>; ebxml-msg <ebxml-msg@lists.oasis-open.org>
Date: Wednesday, October 31, 2001 12:35 PM
Subject: Re: [ebxml-msg] xml namespace

>On the contrary, I have experienced with a number of XML parsers
>and validators that would choke on such a declaration. These include
>Microsoft's Internet Explorer and TIBCO's Extensibility XML
>Authority/Instance products.
>http://www.w3.org/TR/REC-xml-names/ states:
>Namespace Constraint: Leading "XML"
>Prefixes beginning with the three-letter sequence x, m, l, in any case
>combination, are reserved for use by XML and XML-related specifications.
>When I add the suggested line to the schema, I get the following
>error from TIBCO Extensibility XML Authority:
>Parser Error. 'Illegal Namespace prefix: "xml".'
>Namespace prefix should not start with 'xml' - that is reserved.
>Let's get a general agreement on whether the suggested line is needed
>before posting the revised schema to the designated location.
>-----Original Message-----
>From: David Fischer <david@drummondgroup.com>
>To: Cliff Collins <collinsc@sybase.com>; ebxml-msg
><ebxml-msg@lists.oasis-open.org>; Arvola Chan <arvola@tibco.com>
>Date: Wednesday, October 31, 2001 12:18 PM
>Subject: RE: [ebxml-msg] xml namespace
>>Arvola, could you please add this to the schema?
>> xmlns:xml="http://www.w3.org/XML/1998/namespace"
>>David Fischer
>>Drummond Group.
>>-----Original Message-----
>>From: Cliff Collins [mailto:collinsc@sybase.com]
>>Sent: Wednesday, October 31, 2001 1:28 PM
>>To: ebxml-msg
>>Subject: [ebxml-msg] xml namespace
>>uri for xml namespace
>>Cliff Collins
>>URL: http://www.skyweyr.com/cliff
>>To subscribe or unsubscribe from this elist use the subscription
>>manager: <http://lists.oasis-open.org/ob/adm.pl>

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC