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.
list — Text node split
pattern
element list
{
(
attribute ns { text }?,
attribute datatypeLibrary { xsd:anyURI }?,
attribute * - (rng:* | local:*) { text }*
),
(
( element * - rng:* { ... }* )
& (
element element { ... }
| element attribute { ... }
| element group { ... }
| element interleave { ... }
| element choice { ... }
| element optional { ... }
| element zeroOrMore { ... }
| element oneOrMore { ... }
| element list { ... }
| element mixed { ... }
| element ref { ... }
| element parentRef { ... }
| element empty { ... }
| element text { ... }
| element value { ... }
| element data { ... }
| element notAllowed { ... }
| element externalRef { ... }
| element grammar { ... }
)+
)
}
|
attribute, choice, define, element, except, group, interleave, list, mixed, oneOrMore, optional, start, zeroOrMore.
list
The list pattern splits a text node into tokens separated by white spaces . The splitting allows the validation of these tokens separately. This is most useful for validating lists of values.
interleave cannot be used within list.
The content of a list is only about data: it's forbidden to define element, attribute or text there.
It's forbidden to embed list into list.
<attribute name="see-also">
<list>
<zeroOrMore>
<data type="token"/>
</zeroOrMore>
</list>
</attribute>
<attribute name="dimensions">
<list>
<data type="xs:decimal"/>
<data type="xs:decimal"/>
<data type="xs:decimal"/>
<choice>
<value>inches</value>
<value>cm</value>
<value>mm</value>
</choice>
</list>
</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 schema. The value of ns is inherited.
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.