In the schema below what is the syntax wihin an extending type or element of an extended type, to initialize attributes defined in the base type. My attempt does not validate. Extended type can be any combination of complex/simple type content. Thanks!
<?xml version=”1.0″ encoding=”UTF-8″?>
<xsd:schema
targetNamespace=”test.org”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xmlns:tst=”test.org”
elementFormDefault=”unqualified” >
<xsd:complexType name=”BaseType”>
<xsd:simpleContent>
<xsd:extension base=”xsd:string”>
<xsd:attribute name=”BaseTypeAttribute” type=”xsd:string” use=”required” fixed=”TestValue”/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name=”ExtendedType” >
<xsd:complexContent>
<xsd:extension base=”tst:BaseType”>
<xsd:attribute name=”ExtendedTypeAttribute”
type=”xsd:string” use=”optional” />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name=”ExtendedElement” BaseTypeAttribute=”PerhapsSomeDataHere” type=”tst:ExtendedType” />
</xsd:schema>