code_file.xsd
author Laurent Bessard
Fri, 10 May 2013 15:17:33 +0200
changeset 1121 d3838e8f1b90
parent 1096 c9ace6a881c9
permissions -rw-r--r--
Fixed Beremiz_service not closing on Windows
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsd:schema targetNamespace="code_file.xsd" 
            xmlns:codefile="code_file.xsd" 
            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            elementFormDefault="qualified" 
            attributeFormDefault="unqualified">

  <xsd:element name="CodeFile">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="includes" type="codefile:CodeText"/>
        <xsd:element name="variables">
          <xsd:complexType>
            <xsd:sequence>
              <xsd:element name="variable" minOccurs="0" maxOccurs="unbounded">
                <xsd:complexType>
                  <xsd:attribute name="name" type="xsd:string" use="required"/>
                  <xsd:attribute name="type" type="xsd:string" use="required"/>
                  <xsd:attribute name="class" use="optional">
                    <xsd:simpleType>
                      <xsd:restriction base="xsd:string">
                        <xsd:enumeration value="input"/>
                        <xsd:enumeration value="memory"/>
                        <xsd:enumeration value="output"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:attribute>
                  <xsd:attribute name="initial" type="xsd:string" use="optional" default=""/>
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:element>
        <xsd:element name="globals" type="codefile:CodeText"/>
        <xsd:element name="initFunction" type="codefile:CodeText"/>
        <xsd:element name="cleanUpFunction" type="codefile:CodeText"/>
        <xsd:element name="retrieveFunction" type="codefile:CodeText"/>
        <xsd:element name="publishFunction" type="codefile:CodeText"/>
      </xsd:sequence>
    </xsd:complexType>
  </xsd:element>
  <xsd:complexType name="CodeText">
    <xsd:annotation>
      <xsd:documentation>Formatted text according to parts of XHTML 1.1</xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:any namespace="http://www.w3.org/1999/xhtml" processContents="lax"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:schema>