PageRenderTime 157ms CodeModel.GetById 154ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/bundles/plugins-trunk/XML/test_data/simple/actions.xsd

#
XML Schema | 40 lines | 39 code | 1 blank | 0 comment | 0 complexity | f89a58568994ba07c6e62e65d8e77521 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2
 3<!--
 4	this is the classic actions.dtd convert to XSD via trang
 5  -->
 6<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
 7  <xs:simpleType name="att-bool">
 8    <xs:restriction base="xs:token">
 9      <xs:enumeration value="TRUE"/>
10      <xs:enumeration value="FALSE"/>
11    </xs:restriction>
12  </xs:simpleType>
13  <!-- ACTIONS element -->
14  <xs:element name="ACTIONS">
15    <xs:complexType>
16      <xs:sequence>
17	  	<!-- this reference requires that even an existing element name is added
18		     to parent.content (see XercesParserImpl.xsElementToElementDecl() )
19		  -->
20        <xs:element maxOccurs="unbounded" ref="ACTION"/>
21      </xs:sequence>
22    </xs:complexType>
23  </xs:element>
24  <!-- ACTION element -->
25  <xs:element name="ACTION">
26    <xs:complexType>
27      <xs:sequence>
28        <xs:element ref="CODE"/>
29        <xs:element minOccurs="0" ref="IS_SELECTED"/>
30      </xs:sequence>
31      <xs:attribute name="NAME" use="required" type="xs:ID"/>
32      <xs:attribute name="NO_REPEAT" default="FALSE" type="att-bool"/>
33      <xs:attribute name="NO_RECORD" default="FALSE" type="att-bool"/>
34      <xs:attribute name="NO_REMEMBER_LAST" default="FALSE" type="att-bool"/>
35    </xs:complexType>
36  </xs:element>
37  <!-- ACTION children -->
38  <xs:element name="CODE" type="xs:string"/>
39  <xs:element name="IS_SELECTED" type="xs:string"/>
40</xs:schema>