小编Jam*_*amo的帖子

XSD 扩展复杂类型

我正在尝试扩展 XSD 文件中的现有复杂类型。

我创建了一个新的 xsd 文件并将其包含在所有主 XSD 文件的末尾。

我遇到的问题是,它似乎添加了我的扩展,但它删除了 asset_abstract 中定义的元素以外的现有元素

我想做的事情可能吗?

我不想修改的代码

<xs:complexType name="Feature_Cadastre_Lot" abstract="false">
<xs:annotation>
  <xs:documentation>Represents the boundary of a titled, or proposed lot</xs:documentation>
</xs:annotation>
<xs:complexContent>
  <xs:extension base="asset_abstract">
    <xs:sequence minOccurs="1" maxOccurs="1">
      <xs:element name="LotNo" type="String_32" minOccurs="1" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:documentation>The lot number as described on the originating survey plan</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlanNo" type="String_32" minOccurs="1" maxOccurs="1" nillable="false">
        <xs:annotation>
          <xs:documentation>The plan number of the originating survey plan.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CancelledLotPlan" type="String_32" minOccurs="1" maxOccurs="1" nillable="true">
        <xs:annotation>
          <xs:documentation>The lot on plan …
Run Code Online (Sandbox Code Playgroud)

xsd

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

xsd ×1