-
Notifications
You must be signed in to change notification settings - Fork 1
/
personas.xsd
60 lines (51 loc) · 1.63 KB
/
personas.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0" encoding="UTF-8"?>
<xml:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Libreria">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Libro" type="TipoLibro"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="Autor" type="TipoAutor"
minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:key name="LibroKey">
<xsd:selector xpath="Libro" />
<xsd:field xpath="@ISBN" />
</xsd:key>
<xsd:key name="AutorKey">
<xsd:selector xpath="Autor" />
<xsd:field xpath="@Ident" />
</xsd:key>
<xsd:keyref name="AutorKeyRef" refer="AutorKey">
<xsd:selector xpath="Libro/Autores/Autor" />
<xsd:field xpath="@autIdent" />
</xsd:keyref>
</xsd:element>
<xsd:complexType name="TipoLibro">
<xsd:sequence>
<xsd:element name="Titulo" type="xsd:string" />
<xsd:element name="Autores">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Autor" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="autIdent" type="xsd:string"
use="required" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="ISBN" type="xsd:string" use="required" />
<xsd:attribure name="Price" type="xsd:integer" use="required" />
</xsd:complexType>
<xsd:complexType name="TipoAutor">
<xsd:sequence>
<xsd:element name="nombre" type="xsd:string" />
<xsd:element name="apellido" type="xsd:string" />
</xsd:sequence>
<xsd:attribute name="Ident" type="xsd:string" use="required" />
</xsd:complexType>
</xml:schema>