| <bit> mixed content, text or one element | |
| Module | derived-module-odd-1 |
| Contained by | |
| May contain |
derived-module-odd-1:
bob
character data
|
| Schematron |
<sch:report test="count(bob) !=1">Only one bob allowed</sch:report>
|
| Content model |
<content>
<alternate minOccurs="1" maxOccurs="1">
<textNode/>
<elementRef key="bob" maxOccurs="1"/>
</alternate>
</content>
⚓
|
| Schema Declaration |
element bit { text |
bob }
⚓
|
| <stuff> simple elements | |
| Module | derived-module-odd-1 |
| Contained by |
—
|
| May contain | |
| Content model |
<content>
<alternate minOccurs="1"
maxOccurs="unbounded">
<elementRef key="bit"/>
<elementRef key="bob"/>
<elementRef key="thingummy"/>
</alternate>
</content>
⚓
|
| Schema Declaration |
element stuff { (
bit |
bob |
thingummy )+ }
⚓
|
| <t1> mixed content with multiple elements | |
| Module | derived-module-odd-1 |
| Contained by | |
| May contain | |
| Content model |
<content>
<alternate minOccurs="1" maxOccurs="1">
<textNode/>
<elementRef key="bit"/>
<elementRef key="bob"/>
<elementRef key="t1"/>
</alternate>
</content>
⚓
|
| Schema Declaration |
element t1 { text |
bit |
bob |
t1 }
⚓
|
| <t2> mixed content with *Occurs | |
| Module | derived-module-odd-1 |
| Contained by |
—
|
| May contain | |
| Content model |
<content>
<alternate minOccurs="0"
maxOccurs="unbounded">
<textNode/>
<elementRef key="bit"/>
<elementRef key="bob"/>
</alternate>
</content>
⚓
|
| Schema Declaration |
element t2 { ( text |
bit |
bob )* }
⚓
|
| <t3> mixed content with only minOccurs | |
| Module | derived-module-odd-1 |
| Contained by |
—
|
| May contain | |
| Content model |
<content>
<alternate minOccurs="0" maxOccurs="1">
<textNode/>
<elementRef key="bit"/>
<elementRef key="bob"/>
</alternate>
</content>
⚓
|
| Schema Declaration |
element t3 { ( text |
bit |
bob )? }
⚓
|
| <t4> mixed content with only maxOccurs | |
| Module | derived-module-odd-1 |
| Contained by |
—
|
| May contain | |
| Content model |
<content>
<alternate minOccurs="1"
maxOccurs="unbounded">
<textNode/>
<elementRef key="bit"/>
<elementRef key="bob"/>
<elementRef key="t1"/>
</alternate>
</content>
⚓
|
| Schema Declaration |
element t4 { ( text |
bit |
bob |
t1 )+ }
⚓
|
| <t5> sequence within alternation | |
| Module | derived-module-odd-1 |
| Contained by |
—
|
| May contain | |
| Content model |
<content>
<alternate minOccurs="1" maxOccurs="1">
<textNode/>
<sequence minOccurs="1"
maxOccurs="unbounded">
<elementRef key="bit"/>
<elementRef key="bob"/>
</sequence>
</alternate>
</content>
⚓
|
| Schema Declaration |
element t5 { text | (
bit,
bob )+ }
⚓
|
| <t7> sequence of elements | |
| Module | derived-module-odd-1 |
| Contained by |
—
|
| May contain | |
| Content model |
<content>
<sequence minOccurs="1" maxOccurs="1">
<elementRef key="orgName" minOccurs="0"/>
<elementRef key="persName" minOccurs="0"/>
<elementRef key="choice" minOccurs="0"/>
<elementRef key="seg" minOccurs="0"/>
<elementRef key="trait" minOccurs="0"/>
</sequence>
</content>
⚓
|
| Schema Declaration |
element t7 {
orgName?,
persName?,
choice?,
seg?,
trait? }
⚓
|
| <t8> sequence with textnode, and minOccurs on elements | |
| Module | derived-module-odd-1 |
| Contained by |
—
|
| May contain | |
| Content model |
<content>
<sequence minOccurs="1" maxOccurs="1">
<textNode/>
<elementRef key="orgName" minOccurs="0"/>
<elementRef key="persName" minOccurs="0"/>
<elementRef key="choice" minOccurs="0"/>
<elementRef key="seg" minOccurs="0"/>
<elementRef key="trait" minOccurs="0"/>
</sequence>
</content>
⚓
|
| Schema Declaration |
element t8 { text,
orgName?,
persName?,
choice?,
seg?,
trait? }
⚓
|