【问题标题】:hr-xml - the namespace attribute of an import should be the same value as the tragetnamespace of the imported schemahr-xml - 导入的命名空间属性应与导入模式的 tragetnamespace 值相同
【发布时间】:2014-09-01 06:02:39
【问题描述】:

我在下面一行收到错误

"导入的命名空间属性 'http://www.applications.org/sdf/9' 应该与导入架构的 tragetnamespace 'http://www.hr-xml.org/3' 的值相同"

<xsd:import namespace="http://www.applications.org/sdf/9" schemaLocation="Components.xsd"/>

Components.xsd -

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:oa="http://www.applications.org/sdf/9" xmlns:ccts="udn:dn:udede:dndedact:ddcdmdndation:1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.hr-xml.org/3" targetNamespace="http://www.hr-xml.org/3" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xsd:annotation>
    <xsd:documentation>Name: Components.xsd Status:  3.2 Release Date this version: 2011-Sep-28</xsd:documentation>
  </xsd:annotation>
  <xsd:import namespace="http://www.applications.org/sdf/9" schemaLocation="Components.xsd"/>
  <xsd:include schemaLocation="Fields.xsd"/>
  <xsd:element name="AlternateScriptPersonName" type="AlternateScriptPersonNameType"/>
</xsd:schema>

请帮忙?

【问题讨论】:

    标签: xml schema xsd biztalk


    【解决方案1】:

    您能查看 Components.xsd 文件吗? 那里的默认命名空间是什么?

    这就是应该放在这里的命名空间:

    <xsd:import namespace="http://www.applications.org/sdf/9" schemaLocation="Components.xsd"/>
    

    而不是http://www.applications.org/sdf/9

    这应该可以解决问题。

    【讨论】:

      猜你喜欢
      • 2013-09-29
      • 1970-01-01
      • 1970-01-01
      • 2022-01-12
      • 1970-01-01
      • 2013-01-20
      • 2012-03-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多