Meeskond "PhoneBook": Difference between revisions
From ICO wiki
Jump to navigationJump to search
Line 17: | Line 17: | ||
=== XML === | === XML === | ||
<pre> | <pre> | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
< | <contacts> | ||
< | <contact id="1"> | ||
< | <name> | ||
< | <firstname required="true"> Mart </firstname> | ||
< | <middlenames> | ||
</ | <middlename required="false"></middlename> | ||
< | </middlenames> | ||
< | <lastname required="true"> Tamm </lastname> | ||
</name> | |||
<addresses> | |||
<address type="default"> | |||
<country> Eesti </country> | |||
<county> Tartumaa </county> | |||
</ | <townorvillage> Tartu </townorvillage> | ||
< | <streetorfarm> Põllu </streetorfarm> | ||
< | <housenr> 6 </housenr> | ||
< | <zipcode> 50210 </zipcode> | ||
</ | </address> | ||
</addresses> | |||
< | <phones> | ||
< | <phone type="landline"> 7249959 </phone> | ||
< | <phone type="mobile"> 53345699 </phone> | ||
</ | <phone type="skype"></phone> | ||
< | </phones> | ||
< | <comments required="false"></comments> | ||
</contact> | |||
<contact id="2"> | |||
<name> | |||
<firstname required="true"> Linda </firstname> | |||
<middlenames> | |||
</ | <middlename required="false"></middlename> | ||
< | </middlenames> | ||
< | <lastname required="true"> Kuusk </lastname> | ||
< | </name> | ||
</ | <addresses> | ||
</ | <address id="1" type="default"> | ||
</ | <country> Eesti </country> | ||
<county> Harjumaa </county> | |||
<townorvillage> Tallinn </townorvillage> | |||
<streetorfarm> Akadeemia tee </streetorfarm> | |||
<housenr> 28 </housenr> | |||
<zipcode> 12300 </zipcode> | |||
</address> | |||
</addresses> | |||
<phones> | |||
<phone type="landline"> 6359866 </phone> | |||
<phone type="mobile"> 56777521 </phone> | |||
<phone type="skype"></phone> | |||
</phones> | |||
<comments required="false"></comments> | |||
</contact> | |||
</contacts> | |||
</pre> | </pre> |
Revision as of 20:20, 27 February 2012
Meeskond
- Lauri Jansen - wiki, XML
- Tanel Jüris
- Madis Rääk
Idee
Luua näidisteemades välja pakutud telefoniraamatu teenus kus:
- kasutaja saab teenuses kontakte lisada ja kustutada
- kasutaja saab kontaktide nime/telefoninumbri jne abil otsida
- luua võimalus ühele kasutajale (või erinevatele kasutajagruppidele) maksimumpäringute hulga määramiseks
Kusjuures on olemas ka lisavõimalused:
- luua võimalus kasutajatel oma kontaktibaase omavahel jagada
- luua võimalus pakkuda kontaktibaasis leiduvate nimede järgi sobivaid nimesid
XML fail
XML
<?xml version="1.0" encoding="utf-8"?> <contacts> <contact id="1"> <name> <firstname required="true"> Mart </firstname> <middlenames> <middlename required="false"></middlename> </middlenames> <lastname required="true"> Tamm </lastname> </name> <addresses> <address type="default"> <country> Eesti </country> <county> Tartumaa </county> <townorvillage> Tartu </townorvillage> <streetorfarm> Põllu </streetorfarm> <housenr> 6 </housenr> <zipcode> 50210 </zipcode> </address> </addresses> <phones> <phone type="landline"> 7249959 </phone> <phone type="mobile"> 53345699 </phone> <phone type="skype"></phone> </phones> <comments required="false"></comments> </contact> <contact id="2"> <name> <firstname required="true"> Linda </firstname> <middlenames> <middlename required="false"></middlename> </middlenames> <lastname required="true"> Kuusk </lastname> </name> <addresses> <address id="1" type="default"> <country> Eesti </country> <county> Harjumaa </county> <townorvillage> Tallinn </townorvillage> <streetorfarm> Akadeemia tee </streetorfarm> <housenr> 28 </housenr> <zipcode> 12300 </zipcode> </address> </addresses> <phones> <phone type="landline"> 6359866 </phone> <phone type="mobile"> 56777521 </phone> <phone type="skype"></phone> </phones> <comments required="false"></comments> </contact> </contacts>
XML schema
XSLT
Log
27.02.2012
XML ja wiki valmimine ja ülespanek