<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.java2java.com"
xmlns="http://www.java2java.com"
elementFormDefault="qualified">
<xs:simpleType name="supportedLanguages">
<xs:restriction base="xs:language">
<xs:enumeration value="en" />
<xs:enumeration value="es" />
</xs:restriction>
</xs:simpleType>
<xs:attribute name="lang" type="supportedLanguages" />
<xs:complexType name="tokenWithLang">
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute ref="lang" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="title">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="tokenWithLang">
<xs:attribute name="note" type="xs:token" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
|