Update of /cvsroot/xpg-xml/classes/simpledoc
In directory usw-pr-cvs1:/tmp/cvs-serv821
Added Files:
StateMachineConfig.xsd documentgenerator.log simpledoc.xml
simpledoc.xsd simpledoc_config.xml
Log Message:
simple example
--- NEW FILE: StateMachineConfig.xsd ---
<?xml version="1.0" standalone="no"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">
StateMachineConfig.xsd Version 0.1.0
Schema describing the representation of the ConfigStatemachine
This schema was validated with the tool http://www.w3.org/2001/03/webdata/xsv
(04.3.2002)
</xsd:documentation>
</xsd:annotation>
<!-- attention: all names must be adapted to the following nameing convention
type names : AllWordsCapitalizedWithoutUnderscores
element names : alllowercasewithoutunderscores
-->
<xsd:element name="statemachine">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="path" type="xsd:string" minOccurs="1" maxOccurs="unbounded"/>
<xsd:element name="states" type="States" minOccurs="1" maxOccurs="1"/>
<xsd:element name="transitions" type="Transitions" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="States">
<xsd:sequence>
<xsd:element name="startstate" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="state" type="xsd:string" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Transitions">
<xsd:sequence>
<xsd:element name="transition" type="Transition" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Transition">
<xsd:sequence>
<xsd:element name="beginstate" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="nextstate" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="element" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="type" type="ElementAttributes" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="classname" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="ElementAttributes">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="start"/>
<xsd:enumeration value="end"/>
<xsd:enumeration value="enddoc"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
--- NEW FILE: documentgenerator.log ---
DEBUG Parser: " File ./simpledoc/simpledoc_config.xml not existing"
--- NEW FILE: simpledoc.xml ---
<?xml version="1.0" standalone="no"?>
<doc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="simpledoc.xsd">
<title>TEST 0</title>
</doc>
--- NEW FILE: simpledoc.xsd ---
<?xml version="1.0" standalone="no"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="doc">
<xsd:complexType>
<xsd:all>
<xsd:element name="title" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:schema>
--- NEW FILE: simpledoc_config.xml ---
<?xml version="1.0" standalone="no"?>
<statemachine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="StateMachineConfig.xsd">
<path>edu.iicm.xpg.transitions.simpledoc</path>
<path>edu.iicm.xpg.transitions.simple</path>
<states>
<startstate>STATE_TOP_LEVEL_FILE</startstate>
<state>STATE_TOP_LEVEL_DOC</state>
<state>STATE_DOC_TITLE_DEF</state>
<state>STATE_FINISHED</state>
</states>
<transitions>
<transition>
<beginstate>STATE_TOP_LEVEL_FILE</beginstate>
<nextstate>STATE_TOP_LEVEL_DOC</nextstate>
<element type="start">doc</element>
<classname>WriteGeneralHeaderTransition</classname>
</transition>
<transition>
<beginstate>STATE_TOP_LEVEL_FILE</beginstate>
<nextstate>STATE_FINISHED</nextstate>
<element type="enddoc" />
<classname>StopMachineTransition</classname>
</transition>
<transition>
<beginstate>STATE_TOP_LEVEL_DOC</beginstate>
<nextstate>STATE_TOP_LEVEL_FILE</nextstate>
<element type="end">doc</element>
<classname>WriteGeneralFooterTransition</classname>
</transition>
<transition>
<beginstate>STATE_TOP_LEVEL_DOC</beginstate>
<nextstate>STATE_DOC_TITLE_DEF</nextstate>
<element type="start">title</element>
<classname>PrimitiveTransition</classname>
</transition>
<transition>
<beginstate>STATE_DOC_TITLE_DEF</beginstate>
<nextstate>STATE_DOC_TITLE_DEF</nextstate>
<classname>StoreDocTitleTransition</classname>
</transition>
<transition>
<beginstate>STATE_DOC_TITLE_DEF</beginstate>
<nextstate>STATE_TOP_LEVEL_DOC</nextstate>
<element type="end">title</element>
<classname>WriteDocTitleTransition</classname>
</transition>
</transitions>
</statemachine >
|