28 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?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>
 |