![Avatar](https://secure.gravatar.com/avatar/35c2ea699d92e803157ddbaae4f6f108.jpg?s=64&d=identicon&r=g)
Hello!
When setting DefaultNamespace for our schema (m_hSchemaResolver->DefaultNamespace = NAMESPACE_KASTOR;) it seems that the amespace is set even if other namespace is specified.
I expected default to be used when no other namespace is specified but it seems that it always uses this namespace.
Having a file like:
<uiRoot xmlns="http://www.tat.se/cascades" visuals="visuals/default/v_system.tml" xmlns:xi="http://www.w3.org/2001/XInclude">
<onKey keyCode="400" cmd="LSK"/>
<onKey keyCode="540" cmd="CSK"/>
<onKey keyCode="410" cmd="RSK"/>
<onKey keyCode="500" cmd="UP"/>
<onKey keyCode="510" cmd="DOWN"/>
<onKey keyCode="520" cmd="LEFT"/>
<onKey keyCode="530" cmd="RIGHT"/>
When holding the mouse pointer over <onKey it says that name space is:
http://www.tat.se/kastor/kml, which is what we specify as default.
If we remove the m_hSchemaResolver->DefaultNamespace = NAMESPACE_KASTOR; it shows the correct information in the editor.
I guess that is not the correct behaviour, or?
Br,
Cecilia
When setting DefaultNamespace for our schema (m_hSchemaResolver->DefaultNamespace = NAMESPACE_KASTOR;) it seems that the amespace is set even if other namespace is specified.
I expected default to be used when no other namespace is specified but it seems that it always uses this namespace.
Having a file like:
<uiRoot xmlns="http://www.tat.se/cascades" visuals="visuals/default/v_system.tml" xmlns:xi="http://www.w3.org/2001/XInclude">
<onKey keyCode="400" cmd="LSK"/>
<onKey keyCode="540" cmd="CSK"/>
<onKey keyCode="410" cmd="RSK"/>
<onKey keyCode="500" cmd="UP"/>
<onKey keyCode="510" cmd="DOWN"/>
<onKey keyCode="520" cmd="LEFT"/>
<onKey keyCode="530" cmd="RIGHT"/>
When holding the mouse pointer over <onKey it says that name space is:
http://www.tat.se/kastor/kml, which is what we specify as default.
If we remove the m_hSchemaResolver->DefaultNamespace = NAMESPACE_KASTOR; it shows the correct information in the editor.
I guess that is not the correct behaviour, or?
Br,
Cecilia