You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.0 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!-- Rudimentary top-down schema intended for all CJVT dictionary-style datasets. Each such dataset should be
validated both with this schema and with an appropriate more specific schema based on the inventory. -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" />
<!-- top-level element is a dictionary -->
<xsd:element name="dictionary" type="rootType"/>
<xsd:element name="lexicon" type="rootType"/>
<!-- top-level type consists of sequence of entries -->
<xsd:complexType name="rootType">
<xsd:sequence>
<xsd:element name="entry" type="entryType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- entry consists of head and body -->
<xsd:complexType name="entryType">
<xsd:sequence>
<xsd:element name="head" type="xsd:anyType"/>
<xsd:element name="body" type="xsd:anyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>