by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)
text — Pattern-matching text nodes
element text { ( attribute ns { text }?, attribute datatypeLibrary { xsd:anyURI }?, attribute * - (rng:* | local:*) { text }* ), ( element * - rng:* { ... }* ) } |
attribute, choice, define, element, except, group, interleave, list, mixed, oneOrMore, optional, start, zeroOrMore
The text pattern matches zero or more text nodes. A match of more than one text node has no effect when it is used in ordered content models (the data model used by RELAX NG for XML documents is similar to the data model of XPath 1.0, and two text nodes can't be adjacent) but makes a difference when a text pattern is used in interleave. Adding a single text pattern in an interleave pattern has the effect of allowing any number of text nodes, which can interleave before and after each element (note that the mixed pattern is provided as a shortcut to define these content models).
This text is released under the Free Software Foundation GFDL.