Name

list — Text node split

Synopsis

“list” “{” 
pattern “}”

Restrictions

pattern

May be included in

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

XML syntax equivalent

list

Description

The list pattern splits a text node into tokens separated by whitespace to allow the validation of these tokens separately. This item is most useful for validating lists of values.

Restrictions

  • interleave can’t 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.

Example

attribute see-also {list {token*}}

attribute dimensions {list {xsd:decimal, xsd:decimal, xsd:decimal, 
  ("inches"|"cm"|"mm")}}

Get RELAX NG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.