mirror of
https://gitlab.com/tutorial-java-rafa-munoz/tutorial-java-2024-25/LMSGI-2024-25.git
synced 2025-11-10 02:13:05 +01:00
feat(ch 4): added
This commit is contained in:
19
Unidad_04_DTD_XSD/XSD/xml-xsd-09-sequence.xsd
Normal file
19
Unidad_04_DTD_XSD/XSD/xml-xsd-09-sequence.xsd
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:element name="superheroe" type="caracSuperheroe"/>
|
||||
|
||||
<xs:complexType name="caracSuperheroe">
|
||||
<xs:sequence>
|
||||
<xs:element name="nombre" minOccurs="0" maxOccurs="3" type="minimoUnCaracter" />
|
||||
<xs:element name="edad" type="xs:string" />
|
||||
<xs:element name="bando" type="xs:string" />
|
||||
</xs:sequence>
|
||||
<xs:attribute name="nombreReal" type="minimoUnCaracter"/>
|
||||
</xs:complexType>
|
||||
|
||||
<xs:simpleType name="minimoUnCaracter">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:minLength value="1"/>
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:schema>
|
||||
Reference in New Issue
Block a user