Ответ 1
Вам нужно использовать ограничение вместо расширения. Это была бы полная допустимая схема для указанного вами сценария (я просто использовал пространства имен, чтобы сделать его действительным).
<?xml version="1.0" encoding="utf-8" ?>
<!-- XML Schema generated by QTAssistant/XSD Module (http://www.paschidev.com) -->
<xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd" xmlns="http://tempuri.org/XMLSchema.xsd" xmlns:core="http://tempuri.org/XMLSchema.xsd" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="parentType">
<xs:sequence>
<xs:element name="departmentName" type="core:DEPARTMENT_NAME" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="childType">
<xs:complexContent>
<xs:restriction base="parentType">
<xs:sequence>
<xs:element name="departmentName" type="core:DEPARTMENT_NAME"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="DEPARTMENT_NAME">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:element name="childType" type="childType"/>
</xs:schema>