Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
8496896f
Commit
8496896f
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2003-11-24 15:56:25 by szach] added test for mixed content model
Original author: szach Date: 2003-11-24 15:56:25+00:00
parent
642d1e6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/schema/regtest/mixed.xml
0 → 100644
View file @
8496896f
<root>
Interleaved
<a>
1
</a>
with
<c>
2
</c>
even
<d>
3
</d>
worst
<c>
4
</c>
#PCDATA
<d>
5
</d>
textual
<e>
6
</e>
crap
</root>
tests/schema/regtest/mixed.xsd
0 → 100644
View file @
8496896f
<xsd:schema
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
>
<!--
mixed content model = a (b | (c d)*) e
-->
<xsd:element
name=
"root"
>
<xsd:complexType
mixed=
"true"
>
<xsd:sequence>
<xsd:element
name=
"a"
type=
"xsd:string"
/>
<xsd:choice>
<xsd:element
name=
"b"
type=
"xsd:string"
/>
<xsd:sequence
minOccurs=
"0"
maxOccurs=
"unbounded"
>
<xsd:element
name=
"c"
type=
"xsd:string"
/>
<xsd:element
name=
"d"
type=
"xsd:string"
/>
</xsd:sequence>
</xsd:choice>
<xsd:element
name=
"e"
type=
"xsd:string"
/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment