ZVON > References > Relax NG Reference

Element: data

Go to standard
Attributes: datatypeLibrary | ns | type |
Children: except | <other> | param |
Parents: attribute | choice | define | element | except | group | interleave | list | mixed | oneOrMore | optional | start | zeroOrMore |

<element name="data">
     <attribute name="type">
          <data type="NCName"/>
     </attribute>
     <ref name="common-atts"/>
     <interleave>
          <ref name="other"/>
          <group>
               <zeroOrMore>
                    <element name="param">
                         <attribute name="name">
                              <data type="NCName"/>
                         </attribute>
                         <text/>
                    </element>
               </zeroOrMore>
               <optional>
                    <element name="except">
                         <ref name="common-atts"/>
                         <ref name="open-patterns"/>
                    </element>
               </optional>
          </group>
     </interleave>
</element>

Occurs in Schema Tutorial examples:
Accessing data-types
Restrictions
Multiple restrictions
Element is either a fixed string or an integer
Defining a group of attributes
Attribute contains a list of values
Element contains a list of values
Definition of a custom simpleType - temperature must be greater than -273.15
Limiting string length
Limiting the number of decimal places
Limiting both the number of decimal places and total places
String must contain e-mail address
Element contains date
Element represents time duration
The number must not be in scientific notation
definition of a simpleType, target namespace is null
definition of a simpleType, target namespace is not null
Uniqueness
Key
Uniqueness - comparison of numbers
Keyref