code_file.xsd
changeset 1124 b1705000eba1
parent 1123 55ed55ef7aea
child 1125 1b1472e76f07
equal deleted inserted replaced
1123:55ed55ef7aea 1124:b1705000eba1
     1 <?xml version="1.0" encoding="ISO-8859-1" ?>
       
     2 <xsd:schema targetNamespace="code_file.xsd" 
       
     3             xmlns:codefile="code_file.xsd" 
       
     4             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       
     5             elementFormDefault="qualified" 
       
     6             attributeFormDefault="unqualified">
       
     7 
       
     8   <xsd:element name="CodeFile">
       
     9     <xsd:complexType>
       
    10       <xsd:sequence>
       
    11         <xsd:element name="includes" type="codefile:CodeText"/>
       
    12         <xsd:element name="variables">
       
    13           <xsd:complexType>
       
    14             <xsd:sequence>
       
    15               <xsd:element name="variable" minOccurs="0" maxOccurs="unbounded">
       
    16                 <xsd:complexType>
       
    17                   <xsd:attribute name="name" type="xsd:string" use="required"/>
       
    18                   <xsd:attribute name="type" type="xsd:string" use="required"/>
       
    19                   <xsd:attribute name="class" use="optional">
       
    20                     <xsd:simpleType>
       
    21                       <xsd:restriction base="xsd:string">
       
    22                         <xsd:enumeration value="input"/>
       
    23                         <xsd:enumeration value="memory"/>
       
    24                         <xsd:enumeration value="output"/>
       
    25                       </xsd:restriction>
       
    26                     </xsd:simpleType>
       
    27                   </xsd:attribute>
       
    28                   <xsd:attribute name="initial" type="xsd:string" use="optional" default=""/>
       
    29                 </xsd:complexType>
       
    30               </xsd:element>
       
    31             </xsd:sequence>
       
    32           </xsd:complexType>
       
    33         </xsd:element>
       
    34         <xsd:element name="globals" type="codefile:CodeText"/>
       
    35         <xsd:element name="initFunction" type="codefile:CodeText"/>
       
    36         <xsd:element name="cleanUpFunction" type="codefile:CodeText"/>
       
    37         <xsd:element name="retrieveFunction" type="codefile:CodeText"/>
       
    38         <xsd:element name="publishFunction" type="codefile:CodeText"/>
       
    39       </xsd:sequence>
       
    40     </xsd:complexType>
       
    41   </xsd:element>
       
    42   <xsd:complexType name="CodeText">
       
    43     <xsd:annotation>
       
    44       <xsd:documentation>Formatted text according to parts of XHTML 1.1</xsd:documentation>
       
    45     </xsd:annotation>
       
    46     <xsd:sequence>
       
    47       <xsd:any namespace="http://www.w3.org/1999/xhtml" processContents="lax"/>
       
    48     </xsd:sequence>
       
    49   </xsd:complexType>
       
    50 </xsd:schema>