RELAX NG by Eric van der Vlist will be published by O'Reilly & Associates (ISBN: 0596004214)
You are welcome to use our annotation system to give your feedback.
value — Match a text node and a value
pattern
element value { attribute type { xsd:NCName }?, ( attribute ns { text }?, attribute datatypeLibrary { xsd:anyURI }?, attribute * - (rng:* | local:*) { text }* ), text } |
attribute, choice, define, element, except, group, interleave, list, mixed, oneOrMore, optional, start, zeroOrMore.
datatypeName literal
The value pattern matches a text node against a value using the semantic of a specified datatype to perform the comparison.
The value pattern is meant for data oriented applications and can't be used in mixed content models.
<attribute name="see-also"> <list> <oneOrMore> <choice> <value>0836217462</value> <value>0345442695</value> <value>0449220230</value> <value>0449214044</value> <value>0061075647</value> </choice> </oneOrMore> </list> </attribute> <attribute name="available"> <data type="boolean"> <except> <value>0</value> <value>1</value> </except> </data> </attribute> <attribute name="available"> <data type="boolean"> <except> <value type="boolean">false</value> </except> </data> </attribute> |
The datatypeLibrary attribute defines the default datatype library. The value of datatypeLibrary is inherited.
The ns attribute defines the default namespace for the elements defined in a portion of a schema. The value of ns is inherited.
The type attribute specifies which datatype to use to perform the comparison. Note that this is not an inherited attribute. When it is not specified, the comparison is done using the default datatype, the token datatype of RELAX NG's built in type library. Because of this, a string comparison will be done on the values after space normalization.
You are welcome to use our annotation system to give your feedback.
[Annotations for this page]
All text is copyright Eric van der Vlist, Dyomedea. During development, I give permission for non-commercial copying for educational and review purposes. After publication, all text will be released under the Free Software Foundation GFDL.