by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


Name

param — Datatype parameter

Synopsis

element param
{
 attribute name { xsd:NCName },
 (
 attribute ns { text }?,
 attribute datatypeLibrary { xsd:anyURI }?,
 attribute * - (rng:* | local:*) { text }*
 ),
 text
}

Class

parameter

May be included in

data

Compact syntax equivalent

param

Description

The param element specifies parameters passed to the datatype library to determine whether a value is valid per a datatype. When the datatype library is the W3C XML Schema datatype, these parameters are the facets of the datatype and define additional restrictions to be applied. The name of the parameter is defined by the name attribute, and its value is the content of the param element.

Example

<element name="book">
 <attribute name="id">
  <data type="NMTOKEN">
    <param name="maxLength">16</param>
  </data>
 </attribute>
 <attribute name="available">
  <data type="boolean"/>
 </attribute>
 <element name="isbn">
  <data type="NMTOKEN">
    <param name="pattern">[0-9]{9}[0-9x]</param>
  </data>
 </element>
 <element name="title">
  <attribute name="xml:lang">
   <data type="language">
    <param name="length">2</param>
   </data>
  </attribute>
  <data type="token">
    <param name="maxLength">255</param>
  </data>
 </element>

Attributes

datatypeLibrary

This attribute defines the default datatype library. The value is inherited.

name

This attribute specifies the name of the parameter.

ns

This attribute defines the default namespace for the elements defined in a portion of schema. The value is inherited.


This text is released under the Free Software Foundation GFDL.