Example repository:
index | >> categories << | search
All >
Relax NG >
Simplification - number of child elements
Test 133
(
Element "foo" must have exactly three "bar" children and nothing else.
)
Test 134
(
Element "foo" must have just 3, 6, 9, .., 3n "bar" children
and nothing else.
)
Test 137
(
Document 2 - this is not a list which consists of "x", "y", and "z".
)
Test 139
(
Element "foo" must have exactly three "bar" children and nothing else.
)
Test 140
(
The root element can have any name with the
exception of "foo", "bar", or "baz".
)
Test 141
(
Element "foo" cannot contain any of the tokens "x", "y", or "z"
(but token "xyz" is OK).
)
Test 142
(
Element "foo" must have an attribute "bar". The attribute
element - which defines the "bar" attribute -
does not have any children, so text element is added,
and thus the "bar" attribute can be empty or contain a text.
)
Test 143
(
Element "foo" must have an attribute "bar". The attribute
element - which defines the "bar" attribute -
does not have any children than name, so text element is added,
and thus the "bar" attribute can be empty or contain a text.
)
Test 144
(
The element "foo" must have exactly three "bar" elements
and nothing else.
)
Test 145
(
Element "foo" must have just one of the elements
"bar1", "bar2", or "bar3".
)
Test 146
(
Element "foo" must have a mixture of the elements
"bar1", "bar2", and "bar3", each element must
occur just once.
)
Test 147
(
Element "foo" must have just one "bar" element, nothing else.
)
Test 148
(
Element "foo" must have just one "bar" element, nothing else.
)
Test 149
(
Element "foo" must have just one "bar" element, nothing else.
)
Test 331
(
Just quoting:
"The group element is normalized out."
)