Added files from lab6
This commit is contained in:
parent
9709ca84aa
commit
af8c1fd8fc
BIN
lab6/laboratoria6-zadaniedomowe.pdf
Normal file
BIN
lab6/laboratoria6-zadaniedomowe.pdf
Normal file
Binary file not shown.
15
lab6/laboratoria6.xml
Normal file
15
lab6/laboratoria6.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE card SYSTEM "plik_dtd.dtd">
|
||||
|
||||
<card>
|
||||
<name>Sebastian</name>
|
||||
<lastname>Dolata</lastname>
|
||||
<phone>123456789</phone>
|
||||
<email>sebdol@st.amu.edu.pl</email>
|
||||
<address>
|
||||
<street>Uniwersyettu Poznańskiego</street>
|
||||
<building_number>2</building_number>
|
||||
<postal_code>66-600</postal_code>
|
||||
<town>Poznań</town>
|
||||
</address>
|
||||
</card>
|
72
lab6/plik.xml
Normal file
72
lab6/plik.xml
Normal file
@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE spis_powszechny [
|
||||
<!ELEMENT spis_powszechny (date, address, person*)>
|
||||
|
||||
<!ELEMENT date (year, month, day)>
|
||||
<!ELEMENT year (#PCDATA)>
|
||||
<!ELEMENT month (#PCDATA)>
|
||||
<!ELEMENT day (#PCDATA)>
|
||||
|
||||
<!ELEMENT address (street, city, county, country, postalcode)>
|
||||
<!ELEMENT street (#PCDATA|unit)*>
|
||||
<!ELEMENT unit (#PCDATA)>
|
||||
<!ELEMENT city (#PCDATA)>
|
||||
<!ELEMENT county (#PCDATA)>
|
||||
<!ELEMENT country (#PCDATA)>
|
||||
<!ELEMENT postalcode (#PCDATA)>
|
||||
|
||||
<!ELEMENT person (name, age, gender)>
|
||||
<!ELEMENT name (first, last, junior?)>
|
||||
<!ELEMENT first (#PCDATA)>
|
||||
<!ELEMENT last (#PCDATA)>
|
||||
<!ELEMENT junior EMPTY>
|
||||
<!ELEMENT age (#PCDATA)>
|
||||
<!ELEMENT gender (#PCDATA)>
|
||||
|
||||
<!ATTLIST spis_powszechny rachmistrz CDATA #REQUIRED>
|
||||
|
||||
<!ATTLIST person employed (fulltime|parttime) #IMPLIED>
|
||||
<!ATTLIST person id CDATA #REQUIRED>
|
||||
]>
|
||||
<spis_powszechny rachmistrz="3163">
|
||||
<date>
|
||||
<year>2021</year>
|
||||
<month>5</month>
|
||||
<day>11</day>
|
||||
</date>
|
||||
<address>
|
||||
<street>
|
||||
Lane 111
|
||||
<unit>4</unit>
|
||||
</street>
|
||||
<city>Big City</city>
|
||||
<county>Greenwood</county>
|
||||
<country>Ooo</country>
|
||||
<postalcode>88-112</postalcode>
|
||||
</address>
|
||||
<person employed="fulltime" id="123098665">
|
||||
<name>
|
||||
<first>Miron</first>
|
||||
<last>Baar</last>
|
||||
<junior />
|
||||
</name>
|
||||
<age>39</age>
|
||||
<gender>male</gender>
|
||||
</person>
|
||||
<person employed="parttime" id="020398665">
|
||||
<name>
|
||||
<first>Marion</first>
|
||||
<last>Brug-Baar</last>
|
||||
</name>
|
||||
<age>36</age>
|
||||
<gender>female</gender>
|
||||
</person>
|
||||
<person id="986650203">
|
||||
<name>
|
||||
<first>Barble</first>
|
||||
<last>Baar</last>
|
||||
</name>
|
||||
<age>11</age>
|
||||
<gender>male</gender>
|
||||
</person>
|
||||
</spis_powszechny>
|
11
lab6/plik_dtd.dtd
Normal file
11
lab6/plik_dtd.dtd
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!ELEMENT card (name, lastname, phone, email, address)>
|
||||
<!ELEMENT name (#PCDATA)>
|
||||
<!ELEMENT lastname (#PCDATA)>
|
||||
<!ELEMENT phone (#PCDATA)>
|
||||
<!ELEMENT email (#PCDATA)>
|
||||
<!ELEMENT address (street, building_number, postal_code, town)>
|
||||
<!ELEMENT street (#PCDATA)>
|
||||
<!ELEMENT building_number (#PCDATA)>
|
||||
<!ELEMENT postal_code (#PCDATA)>
|
||||
<!ELEMENT town (#PCDATA)>
|
Loading…
Reference in New Issue
Block a user