Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xsd

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.

like image 398
Nano HE Avatar asked Dec 21 '09 09:12

Nano HE


People also ask

What is extension base in XSD?

xsd extension base element with attributes. 0. XSD Restrictions/Facets for XML with element with multiple enumeration.

What is the extension of schema file?

What Is an XSD File? A file with the XSD file extension is most likely an XML Schema file; a text-based file format that defines validation rules for an XML file and explains the XML form. Since they are schema files, they provide a model for something else, XML files in this case.

What does XSD sequence mean?

<xs:complexType> <xs:sequence> <xs:element name="firstname" type="xs:string"/>


1 Answers

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.

like image 182
Paolo Avatar answered Nov 04 '22 03:11

Paolo