Example repository:
index | >> categories << | search
All >
Relax NG >
Semantics - data and value pattern
Test 257
(
The root element "foo" is of the type "string" from built-in
datatype library
(it means, that no whitespace normalization
is performed before comparison)
and its value is string of a zero length.
)
Test 258
(
The root element "foo" is either empty or
is of the type "string" from built-in
datatype library
(it means, that no whitespace normalization
is performed before comparison)
and its value is string of a zero length.
)
Test 260
(
Root element "foo" contains a string, which must
be at least two characters long.
)
Test 261
(
Root element "foo" contains either string "x"
(after whitespace normalization) or
element "bar".
Because the type attribute for
element value has not been specified, it has
been set to "token".
)
Test 262
(
Root element "foo" contains either token "x" or
mixed content, which must have one "bar" element.
)
Test 263
(
Root element "foo" can contain any string, with the exception
of tokens "x" and "y".
)
Test 264
(
Root element "foo" can contain only a string.
)
Test 265
(
Root element "foo" contains only zero-length string
(i.e. it must be empty).
)
Test 266
(
Root element "foo" must contain at least one character.
It must be non-whitespace character, because
element value does not have type attribute
specified and thus it is set to "token".
(This means that whitespace normalization is performed
before comparison).
)