Upload files to 'PD 5'

This commit is contained in:
Maksym Kokociński 2019-01-21 13:46:55 +00:00
parent a780338894
commit 71bd5572db
1 changed files with 130 additions and 0 deletions

130
PD 5/PD.xml Normal file
View File

@ -0,0 +1,130 @@
<!DOCTYPE shop
[
<!ELEMENT shop (section+)>
<!ELEMENT section (shelf+)>
<!ELEMENT shelf (product*,drink*,shoe*,TV*,laptop*)>
<!ATTLIST shelf domain CDATA #REQUIRED>
<!ATTLIST section domain CDATA #REQUIRED>
<!ELEMENT product (name,price,calories,expiration)>
<!ELEMENT drink (name,price,calories,expiration)>
<!ELEMENT shoe (name,price,size)>
<!ELEMENT TV (name,price,inches,color)>
<!ELEMENT laptop (name,price,inches,color,battery)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT price (#PCDATA)>
<!ELEMENT calories (#PCDATA)>
<!ELEMENT expiration (#PCDATA)>
<!ELEMENT size (#PCDATA)>
<!ELEMENT inches (#PCDATA)>
<!ELEMENT color (#PCDATA)>
<!ELEMENT battery (#PCDATA)>
]>
<shop>
<section domain="spo¿ywczy">
<shelf domain="chipsy">
<product>
<name>Paprykowe</name>
<price>5.00z³</price>
<calories>525</calories>
<expiration> 18.12.2018r.</expiration>
</product>
<product>
<name>Zielona cebulka</name>
<price>5.50z³</price>
<calories>550</calories>
<expiration> 24.12.2018r.</expiration>
</product>
</shelf>
<shelf domain="napoje">
<drink>
<name>CocaCola Lite</name>
<price>2.50z³</price>
<calories>300</calories>
<expiration> 1.12.2020r.</expiration>
</drink>
<drink>
<name>Sprite</name>
<price>3.00z³</price>
<calories>400</calories>
<expiration> 13.12.2021r.</expiration>
</drink>
</shelf>
</section>
<section domain="obuwie">
<shelf domain="sportowe">
<shoe>
<name>Nike</name>
<price>250.00z³</price>
<size>42</size>
</shoe>
<shoe>
<name>Adidas</name>
<price>550.00z³</price>
<size>40</size>
</shoe>
</shelf>
<shelf domain="zimowe">
<shoe>
<name>Buty BOSS</name>
<price>3000.00z³</price>
<size>38</size>
</shoe>
<shoe>
<name>Buty Kazar</name>
<price>4500.00z³</price>
<size>47</size>
</shoe>
</shelf>
</section>
<section domain="elektronika">
<shelf domain="telewizory">
<TV>
<name>Samsung</name>
<price>600.00z³</price>
<inches>42</inches>
<color>czarny</color>
</TV>
<TV>
<name>LG</name>
<price>300.00z³</price>
<inches>38</inches>
<color>metalowy</color>
</TV>
</shelf>
<shelf domain="laptopy">
<laptop>
<name>Acer</name>
<price>4000.00z³</price>
<inches>38</inches>
<color>czarny</color>
<battery>8 godzin</battery>
</laptop>
<laptop>
<name>iMac</name>
<price>9000.00z³</price>
<inches>38</inches>
<color>bia³y</color>
<battery>12 godzin</battery>
</laptop>
</shelf>
</section>
</shop>