Changeset 46

Show
Ignore:
Timestamp:
09/23/05 21:35:57 (3 years ago)
Author:
schst
Message:

Schema now actually can be used for validation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/xml/xjconf.xsd

    r44 r46  
    1313                <xs:element ref="tag" minOccurs="1" maxOccurs="unbounded"/> 
    1414            </xs:sequence>                 
     15            <xs:attribute name="uri" type="xs:string"/> 
    1516        </xs:complexType> 
    1617    </xs:element> 
    17     <xs:element name="tag" type="xs:string"/> 
     18    <xs:element name="tag"> 
     19        <xs:complexType> 
     20            <xs:sequence> 
     21                <xs:element ref="constructor" minOccurs="0" maxOccurs="1"/> 
     22                <xs:element ref="cdata" minOccurs="0" maxOccurs="1"/> 
     23                <xs:element ref="attribute" minOccurs="0" maxOccurs="unbounded"/> 
     24            </xs:sequence>                 
     25            <xs:attribute name="name" type="xs:string"/> 
     26            <xs:attribute name="type" type="xs:string"/> 
     27            <xs:attribute name="key" type="xs:string"/> 
     28            <xs:attribute name="keyAttribute" type="xs:string"/> 
     29            <xs:attribute name="setter" type="xs:string"/> 
     30        </xs:complexType> 
     31    </xs:element> 
     32    <xs:element name="attribute"> 
     33        <xs:complexType> 
     34            <xs:attribute name="name" type="xs:string"/> 
     35            <xs:attribute name="type" type="xs:string"/> 
     36            <xs:attribute name="setter" type="xs:string"/> 
     37            <xs:attribute name="default" type="xs:string"/> 
     38            <xs:attribute name="required" type="xs:boolean"/> 
     39        </xs:complexType> 
     40    </xs:element> 
     41    <xs:element name="cdata"> 
     42        <xs:complexType> 
     43            <xs:attribute name="type" type="xs:string"/> 
     44            <xs:attribute name="setter" type="xs:string"/> 
     45        </xs:complexType> 
     46    </xs:element> 
     47    <xs:element name="constructor"> 
     48    </xs:element> 
    1849</xs:schema>