W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2003

Re: is namespace prefix's name variable?

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Mon, 14 Jul 2003 10:42:59 -0400
Message-Id: <>
To: xmlschema-dev <xmlschema-dev@w3.org>

At 2003-07-14 10:32 -0400, remko de knikker wrote:
>If I have a schema that defines
> >
><tns:element name="method2Request">
>is a XML Document valid when a user changes the 'tns' to 'ns1' for 
>instance, leaving the rest of the definitions intact?
>In other words, is above equal to below??
> >
><ns1:element name="method2Request">

In namespace processing, the prefix is irrelevant.

But ... neither of the above is valid from a W3C Schema perspective since 
the "element" element of a schema expression needs to be in the W3C namespace.

In XML documents the following are equivalent:



Note that nothing needs to exist at the URL of the URI ... a namespace 
aware application does *not* attempt to dereference or locate *any* piece 
of information at the address represented by the string.

I hope this helps.

............. Ken

Upcoming hands-on courses: in-house corporate training available;
North America public:  XSL-FO Aug 4,2003; XSLT/XPath Aug 12, 2003

G. Ken Holman                mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                      Definitive XSLT and XPath
ISBN 0-13-140374-5                              Definitive XSL-FO
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-11-X              Practical Formatting Using XSL-FO
Member of the XML Guild of Practitioners:    http://XMLGuild.info
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/x/bc
Received on Monday, 14 July 2003 10:43:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:02 UTC