W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2004

Re: qualified local/global Re: Namespace problem

From: George Cristian Bina <george@sync.ro>
Date: Wed, 18 Aug 2004 18:19:22 +0300
Message-ID: <4123737A.9070903@sync.ro>
To: Burak Emir <Burak.Emir@epfl.ch>
CC: Volker.Zink@porabo.ch, xmlschema-dev@w3.org

Hi Burak,

 > Having switched to "qualified", why would one need to declare the "plem"
 > prefix, in the instance as well as in the xsd ?
 >
 > In the schema, the type FallImportExport is global, so in the target
 > namespace, which is the same as the one referenced by the "plem" prefix

The element/@type [1] is defined as a QName [2] and if there is no 
prefix in that context then the default namespace is used. In this case 
the default namespace points to the XML Schema namespace 
http://www.w3.org/2001/XMLSchema thus the plem prefix in needed. The 
schema target namespace does not influence qualified names.

 > In the instance, since it is already the default namespace and it is not
 > needed as a prefix anywhere, it is superfluous.

Yes, in the instance the plem prefix is not needed and it is not used so 
  it can be removed.

[1] http://www.w3.org/TR/xmlschema-1/#declare-element
[2] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/datatypes.html#QName

Best Regards,
George
-----------------------------------------------
George Cristian Bina
<oXygen/> XML Editor & XSLT Editor/Debugger
http://www.oxygenxml.com
Received on Wednesday, 18 August 2004 15:18:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:10 UTC