summaryrefslogtreecommitdiffstats
path: root/test/w3c/schema/scxml-module-anchor.xsd
blob: 65ff6cc26671379772424f77640baa9be56e895b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.w3.org/2005/07/scxml"
    xmlns="http://www.w3.org/2005/07/scxml"
    elementFormDefault="qualified">
	<xsd:annotation>
		<xsd:documentation>
		This is the XML Schema anchor module for SCXML
		* anchor
		The anchor module defines these elements and their
		attributes.
		</xsd:documentation>
		<xsd:documentation source="scxml-copyright.xsd"/>
	</xsd:annotation>
	
	<xsd:include schemaLocation="scxml-datatypes.xsd">
		<xsd:annotation>
			<xsd:documentation>
			This module defines SCXML Attribute DataTypes
			</xsd:documentation>
		</xsd:annotation>
	</xsd:include>

	<xsd:include schemaLocation="scxml-attribs.xsd">
		<xsd:annotation>
			<xsd:documentation>
			This module defines Common attributes for SCXML
			</xsd:documentation>
		</xsd:annotation>
	</xsd:include>
	<xsd:include schemaLocation="scxml-contentmodels.xsd">
		<xsd:annotation>
			<xsd:documentation>
            This module defines Common content model extensions  for SCXML
            </xsd:documentation>
		</xsd:annotation>
	</xsd:include>

	<!-- anchor -->
	<xsd:attributeGroup name="scxml.anchor.attlist">
		<xsd:attribute name="type" type="xsd:NMTOKEN" use="required"/>
		<xsd:attribute name="snapshot" type="LocLang.datatype"/>
		<xsd:attributeGroup ref="scxml.extra.attribs"/>
	</xsd:attributeGroup>

	<xsd:group name="scxml.anchor.content">
		<xsd:sequence>
			<xsd:group ref="scxml.extra.content" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:group>

	<xsd:complexType name="scxml.anchor.type">
		<xsd:group ref="scxml.anchor.content"/>
		<xsd:attributeGroup ref="scxml.anchor.attlist"/>
	</xsd:complexType>

	<xsd:element name="anchor" type="scxml.anchor.type"/>
	<!-- Added this in because it should be defined here and used in the profiles. -->
	<xsd:simpleType name="Anchor.datatype">
		<xsd:annotation>
			<xsd:documentation>
				This defines the Anchor data type to be used for the transition element. 
            </xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:NMTOKEN"/>
	</xsd:simpleType>
</xsd:schema>