summaryrefslogtreecommitdiffstats
path: root/test/w3c/schema/scxml-module-anchor.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'test/w3c/schema/scxml-module-anchor.xsd')
-rw-r--r--test/w3c/schema/scxml-module-anchor.xsd67
1 files changed, 67 insertions, 0 deletions
diff --git a/test/w3c/schema/scxml-module-anchor.xsd b/test/w3c/schema/scxml-module-anchor.xsd
new file mode 100644
index 0000000..65ff6cc
--- /dev/null
+++ b/test/w3c/schema/scxml-module-anchor.xsd
@@ -0,0 +1,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>