XSD的namespace问题
有点被 XSD的namespace搞晕了~~~
详细请看以下
A.xsd 中
<schemal xmls:="***省略**" elementqulified=" qualified" targenamespace = "http://aa.bb" >
<complextype name ="person">
<sequence>
<element name ="id" type="string">
</sequence>
</complextype
</schemal>
B.xsd 中
<schemal xmls:="***省略**" elementqulified=" qualified" targenamespace = "http://cc.dd" xmls:c="http://aa.bb">
<complextype name ="query">
<sequence>
<element name ="argo" type="c:person">
</sequence>
</complextype>
</schemal>
有些地方写的不规范见谅,就是表达这个意思,我现在写了一个xml 基于B.xsd的
是这样??
<query xmls="http://cc.dd" xmls:a="http//aa.bb">
<name/>
</query>
还是这样???
<query xmls="http://cc.dd" xmls:a="http//aa.bb">
<a:name/>
</query>
主要是这个name的命名空间,在B。XSD中,应该是怎样?原因?由type决定 还是所在文件决定 ??