What's the meaning of "xsd:extension base = …?

烈酒焚心 提交于 2020-01-01 07:39:24

问题


What's the meaning of ? Does SubParameter type included all the information of MainParameter.type content? and attribute MyIndex attached.

  <xsd:complexType name="SubParameter.type">
    <xsd:complexContent>
      <xsd:extension base="MainParameter.type">
        <xsd:attribute name="MyIndex" type="xsd:nonNegativeInteger"/>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>

Thank you.


回答1:


You are declaring a type that extends MainParameter.type.

In other words, your new type "SubParameter.type" will have all the attributes and structure of MainParameter but with an additional MyIndex attribute.



来源:https://stackoverflow.com/questions/1939062/whats-the-meaning-of-xsdextension-base

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!