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


Arvola,

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
namespace="http://www.w3.org/XML/1998/namespace"
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.

Regards,

David.


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

    xmlns:xml="http://www.w3.org/XML/1998/namespace"

to the schema.

-Arvola


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


>David:
>
>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.
>
>Regards,
>-Arvola
>
>-----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"
>>
>>Thanks,
>>
>>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
>>
>>
>>http://www.w3.org/XML/1998/namespace
>>
>>Cliff Collins
>>mailto:collinsc@sybase.com
>>URL: http://www.skyweyr.com/cliff
>>(510)922-5204
>>
>>
>>
>>----------------------------------------------------------------
>>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