Re: qualified local/global Re: Namespace problem

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