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
dd0a91d4
Commit
dd0a91d4
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2003-11-20 11:25:05 by szach] added two tests used as examples in the Schema documentation
Original author: szach Date: 2003-11-20 11:25:05+00:00
parent
641c191b
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/schema/regtest/attribute_group.xsd
0 → 100644
View file @
dd0a91d4
<xsd:schema
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
>
<xsd:attributeGroup
name=
"nameAttributes"
>
<xsd:attribute
use=
"required"
name=
"name"
type=
"xsd:string"
/>
<xsd:attribute
use=
"required"
name=
"surname"
type=
"xsd:string"
/>
<xsd:attribute
use=
"optional"
name=
"nickname"
type=
"xsd:string"
/>
</xsd:attributeGroup>
</xsd:schema>
tests/schema/regtest/model_group2.xsd
0 → 100644
View file @
dd0a91d4
<xsd:schema
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
>
<xsd:group
name=
"family"
>
<xsd:sequence>
<xsd:element
name=
"mother"
type=
"xsd:string"
/>
<xsd:element
name=
"father"
type=
"xsd:string"
/>
<xsd:sequence
minOccurs=
"0"
maxOccurs=
"unbounded"
>
<xsd:choice>
<xsd:element
name=
"son"
type=
"xsd:string"
/>
<xsd:element
name=
"daughter"
type=
"xsd:string"
/>
</xsd:choice>
</xsd:sequence>
</xsd:sequence>
</xsd:group>
</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