Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.1
    • Component/s: Core

      Description

      The goal is to be able to use standard XSD extension elemnt to define complex types inheritence inside Nuxeo Schema.

      A typical example could be :

      <?xml version="1.0"?>
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
                 xmlns:xxs="http://something.com/schemas/xtension/"
                 targetNamespace="http://something.com/schemas/xtension/">
      
      <xs:complexType name="animalinfo">
        <xs:sequence>
          <xs:element name="race" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>
      
      
      <xs:complexType name="personinfo">
        <xs:complexContent>
          <xs:extension base="xxs:animalinfo">
          <xs:sequence>
            <xs:element name="firstname" type="xs:string"/>
            <xs:element name="lastname" type="xs:string"/>
          </xs:sequence>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
      
      <xs:element name="simpleemployee" type="xxs:personinfo"/>
      
      <xs:complexType name="fullpersoninfo">
        <xs:complexContent>
          <xs:extension base="xxs:personinfo">
            <xs:sequence>
              <xs:element name="address" type="xs:string"/>
              <xs:element name="city" type="xs:string"/>
              <xs:element name="country" type="xs:string"/>
            </xs:sequence>
          </xs:extension>
        </xs:complexContent>
      </xs:complexType>
      
      <xs:element name="employee" type="xxs:fullpersoninfo"/>
      
      </xs:schema>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: