aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/evolution/ignore/transform.xsd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cxx/hybrid/evolution/ignore/transform.xsd')
-rw-r--r--examples/cxx/hybrid/evolution/ignore/transform.xsd69
1 files changed, 69 insertions, 0 deletions
diff --git a/examples/cxx/hybrid/evolution/ignore/transform.xsd b/examples/cxx/hybrid/evolution/ignore/transform.xsd
new file mode 100644
index 0000000..59cf48f
--- /dev/null
+++ b/examples/cxx/hybrid/evolution/ignore/transform.xsd
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+
+<!--
+
+file : examples/cxx/hybrid/evolution/ignore/transform.xsd
+author : Boris Kolpackov <boris@codesynthesis.com>
+copyright : not copyrighted - public domain
+
+-->
+
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:tf="http://www.codesynthesis.com/transform"
+ targetNamespace="http://www.codesynthesis.com/transform"
+ elementFormDefault="qualified">
+
+ <xsd:complexType name="transformation_type" abstract="true">
+ <xsd:sequence>
+ <xsd:element name="description" type="xsd:string"/>
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required"/>
+ </xsd:complexType>
+
+ <xsd:element name="transformation" type="tf:transformation_type"/>
+
+ <!-- Document root. -->
+
+ <xsd:complexType name="transformations_type">
+ <xsd:sequence>
+ <xsd:element ref="tf:transformation" maxOccurs="unbounded"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="transformations" type="tf:transformations_type"/>
+
+ <!-- Move. -->
+
+ <xsd:complexType name="move_type">
+ <xsd:complexContent>
+ <xsd:extension base="tf:transformation_type">
+ <xsd:sequence>
+ <xsd:element name="x" type="xsd:float"/>
+ <xsd:element name="y" type="xsd:float"/>
+ </xsd:sequence>
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:element name="move-transformation"
+ type="tf:move_type"
+ substitutionGroup="tf:transformation"/>
+
+ <!-- Rotate. -->
+
+ <xsd:complexType name="rotate_type">
+ <xsd:complexContent>
+ <xsd:extension base="tf:transformation_type">
+ <xsd:sequence>
+ <xsd:element name="angle" type="xsd:float"/>
+ </xsd:sequence>
+ </xsd:extension>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:element name="rotate-transformation"
+ type="tf:rotate_type"
+ substitutionGroup="tf:transformation"/>
+
+
+</xsd:schema>