Meeskond "PhoneBook": Difference between revisions

From ICO wiki
Jump to navigationJump to search
Ljansen (talk | contribs)
Ljansen (talk | contribs)
Line 34: Line 34:
       <lastname required="true"> Tamm </lastname>
       <lastname required="true"> Tamm </lastname>
     </name>
     </name>
     <addresses>
     <addresses default="1">
       <address id="1" type="default">
       <address id="1">
         <country> Eesti </country>
         <country> Eesti </country>
         <county> Tartumaa </county>
         <county> Tartumaa </county>
Line 42: Line 42:
         <housenr> 6 </housenr>
         <housenr> 6 </housenr>
         <zipcode> 50210 </zipcode>
         <zipcode> 50210 </zipcode>
      </address>
      <address id="2">
        <country> Eesti </country>
        <county> Jõgevamaa </county>
        <townorvillage> Palamuse </townorvillage>
        <streetorfarm> Oti Talu </streetorfarm>
        <housenr> </housenr>
        <zipcode> 47292 </zipcode>
       </address>
       </address>
     </addresses>
     </addresses>
Line 47: Line 55:
       <phone type="landline"> 7249959 </phone>
       <phone type="landline"> 7249959 </phone>
       <phone type="skype"></phone>
       <phone type="skype"></phone>
       <mobile>
       <phone type="mobile"> 53345699 </phone>
        <cellphone type="home"> 53345699 </cellphone>
      <phone type="work"></phone>
        <cellphone type="work"></cellphone>
      <phone type="other"></phone>
        <cellphone type="other"></cellphone>
      </mobile>
     </phones>
     </phones>
     <comments></comments>
     <comments></comments>
Line 63: Line 69:
       <lastname required="true"> Kuusk </lastname>
       <lastname required="true"> Kuusk </lastname>
     </name>
     </name>
     <addresses>
     <addresses default="1">
       <address id="1" type="default">
       <address id="1">
         <country> Eesti </country>
         <country> Eesti </country>
         <county> Harjumaa </county>
         <county> Harjumaa </county>
Line 76: Line 82:
       <phone type="landline"> 6359866 </phone>
       <phone type="landline"> 6359866 </phone>
       <phone type="skype"></phone>
       <phone type="skype"></phone>
       <mobile>
       <phone type="mobile"> 56777521 </phone>
        <cellphone type="home"> 56777521 </cellphone>
      <phone type="work"></phone>
        <cellphone type="work"></cellphone>
      <phone type="other"></phone>
        <cellphone type="other"></cellphone>
      </mobile>
     </phones>
     </phones>
     <comments></comments>
     <comments></comments>

Revision as of 08:54, 28 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

Ülesande täitmiseks tuleb luua XML fail andmete edastamiseks, selle XML faili skeemifail ning paar kolm sobivat XSL faili loodud XML failis olevate andmete transformeerimiseks HTML formaati ja XML faili formaadi muutmiseks.

XML-il peab olema vähemalt 4 loogilist dimensiooni.

Lisaks tuleb kasutada 3-el dimensioonil attribuute, mis on enamat, kui lihtsalt ID.

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  default="1">
      <address id="1">
        <country> Eesti </country>
        <county> Tartumaa </county>
        <townorvillage> Tartu </townorvillage>
        <streetorfarm> Põllu </streetorfarm>
        <housenr> 6 </housenr>
        <zipcode> 50210 </zipcode>
      </address>
      <address id="2">
        <country> Eesti </country>
        <county> Jõgevamaa </county>
        <townorvillage> Palamuse </townorvillage>
        <streetorfarm> Oti Talu </streetorfarm>
        <housenr> </housenr>
        <zipcode> 47292 </zipcode>
      </address>
    </addresses>
    <phones>
      <phone type="landline"> 7249959 </phone>
      <phone type="skype"></phone>
      <phone type="mobile"> 53345699 </phone>
      <phone type="work"></phone>
      <phone type="other"></phone>
    </phones>
    <comments></comments>
  </contact>
  <contact id="2">
    <name>
      <firstname required="true"> Linda </firstname>
      <middlenames>
        <middlename required="false"></middlename>
      </middlenames>
      <lastname required="true"> Kuusk </lastname>
    </name>
    <addresses default="1">
      <address id="1">
        <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="skype"></phone>
      <phone type="mobile"> 56777521 </phone>
      <phone type="work"></phone>
      <phone type="other"></phone>
    </phones>
    <comments></comments>
  </contact>
</contacts>

XML schema

XSLT

Log

27.02.2012

  • XML ja wiki valmimine ja ülespanek