<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="schema:Pos_07060201_complex_content_derived_by_extension_001"
    xmlns:ns="schema:Pos_07060201_complex_content_derived_by_extension_001">
    <complexType name="e25seq">
      <sequence>
        <element name="titleElemBase" type="string"/>
        <element name="forenameElemBase" type="string"/>
        <element name="surnameElemBase" type="string"/>
      </sequence>
      <attribute name="genderAttrBase" type="integer"/>
      <attributeGroup ref="ns:g25attr2"/>
    </complexType>
    <group name="g25seq">
      <sequence>
        <element name="familyStatusElemInGroup" type="string"/>
        <element name="spouseElemInGroup" type="string" minOccurs="0"/>
      </sequence>
    </group>
    <attributeGroup name="g25attr1">
      <attribute name="birthPlaceAttrGroup" type="string"/>
      <attribute name="birthDateAttrGroup" type="string"/>
    </attributeGroup>
    <attributeGroup name="g25attr2">
      <attribute name="jobPositionAttrGroup" type="string"/>
    </attributeGroup>
    <!-- Now a type is defined that extends e25seq by adding a new element, group and attributes: -->
    <complexType name="c1">
      <complexContent>
        <extension base="ns:e25seq">
          <sequence>
            <element name="ageElemExt" type="integer"/>
            <group ref="ns:g25seq"/>
          </sequence>
          <attribute name="unitOfAge" type="string"/>
          <attributeGroup ref="ns:g25attr1"/>
        </extension>
      </complexContent>
    </complexType>
    <element name="e1" type="ns:c1"/>
</schema>