ZVON > Tutorials > XML Schema and Relax NG Tutorial |
Intro / Search / ZVON |
Index |
definition of a simpleType, target namespace is null |
We will create our own simpleType, based on integer. The element "root" must be of that type. The naming of RelaxNG patterns is by no means bound to namespace. ... |
definition of a simpleType, target namespace is not null |
We will create our own simpleType, based on integer. The element "root" must be of that type. The naming of RelaxNG patterns is by no means bound to namespace. ... |
Element and type have the same name |
There is no name clash, because the elements and types are in different "symbol space". In other words, you can name your element "b" and some simpleType "b" too at the same time. In Relax NG, there is no clash among the names of elements, attributes and patterns. ... |
Error - simpleType and complexType have the same name |
SimpleTypes and complexTypes share the same symbol space, thus you can't define a simpleType named "a" and a complexType named "a" at the same time in the target namespace. Relax NG allows multiple patterns with the same name. However, it requires to specify, whether these patterns will be interleaved or whether we will choose one of the possibilities. Here we will make a choice. Relax NG allows multiple patterns with the same name. However, it requires to specify, whether these patterns will be interleaved or "choiced". Here we will make an interleave. ... |