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.


Name

datatypeName literal — Matches a text node and a value

Class:

pattern

Synopsis

[datatypeName] 
literal

May be included in:

(pattern), attribute, datatypeName param exceptPattern, element, list, mixed, pattern&pattern, pattern*, pattern+, pattern,pattern, pattern?, pattern|pattern.

XML syntax equivalent:

value

Description:

The datatypeName literal pattern matches a text node against a value using the semantic of a specified datatype to perform the comparison.

When datatypeName is omitted, the default datatype (which is the token datatype from the RELAX NG built in library) is used.

Restrictions:

The datatypeName literal pattern is meant for data oriented applications and can't be used in mixed content models.

Example:

 "0"
 
 xs:integer "0"

 xs:boolean "false"

 attribute available {xs:boolean "true"}
      

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.