J
jiffers
I'm trying to figure out how to define an element in RNC so that its
contents are validated if a definition matches, othewise no validation
is done.
The example given in the tutorial seems to indicate that you need to
exclude by enumeration all defined attributes and elements:
#this validates all attributes loosely, except for the defined
xml:space attribute
element example {
attribute * - xml:space { text }*,
attribute xml:space { "default" | "preserve" }?
}
What I would like to do is:
element example {
attribute * - xml:* {text}*,
attribute xml:*
}
But this won't parse.
contents are validated if a definition matches, othewise no validation
is done.
The example given in the tutorial seems to indicate that you need to
exclude by enumeration all defined attributes and elements:
#this validates all attributes loosely, except for the defined
xml:space attribute
element example {
attribute * - xml:space { text }*,
attribute xml:space { "default" | "preserve" }?
}
What I would like to do is:
element example {
attribute * - xml:* {text}*,
attribute xml:*
}
But this won't parse.