Example repository:
index | >> categories << | search
All >
Relax NG >
Restrictions - restrictions on attributes
Test 337
(
Duplicate attributes are not allowed.
)
Test 338
(
Duplicate attributes are not allowed.
)
Test 339
(
This schema is correct, because the pattern
oneOrMore prevents attribute duplication.
)
Test 340
(
Duplicate attributes are not allowed.
)
Test 341
(
Duplicate attributes are not allowed.
)
Test 342
(
Duplicate attributes are not allowed.
)
Test 343
(
Duplicate attributes are not allowed.
)
Test 344
(
Schema is correct, because the duplication of "bar"
attribute cannot occur.
Root element is "foo" and it must have "bar" attribute
and one or more other attributes.
)
Test 346
(
Duplicate attributes are not allowed.
)
Test 347
(
Duplicate attributes are not allowed.
)
Test 348
(
Duplicate attributes are not allowed.
)
Test 349
(
Duplicate attributes are not allowed.
)
Test 350
(
Duplicate attributes are not allowed.
)
Test 351
(
Duplicate attributes are not allowed.
)
Test 352
(
Root element is "foo" and it must have an attribute "baz"
and one ore more attributes, which fullfill the following:
they are from any namespace but the null namespace
or it is "bar" attribute from null namespace.
So there won't be any conflict.
)
Test 353
(
Root element "foo" must have one or more attributes
from the namespace
"http://www.example.com/1"
and
one or more attributes
from the namespace
"http://www.example.com/2".
)
Test 355
(
Duplicate attributes are not allowed.
)
Test 356
(
Attributes using infinite name classes must be repeated. More
precisely, an attribute element that has an
anyName or nsName descendant
element must have a oneOrMore ancestor element.
)
Test 357
(
Attributes using infinite name classes must be repeated. More
precisely, an attribute element that has an
anyName or nsName descendant
element must have a oneOrMore ancestor element.
)
Test 358
(
Attributes using infinite name classes must be repeated. More
precisely, an attribute element that has an
anyName or nsName descendant
element must have a oneOrMore ancestor element.
)