Meeskond "PhoneBook": Difference between revisions

From ICO wiki
Jump to navigationJump to search
Ljansen (talk | contribs)
Ljansen (talk | contribs)
Line 17: Line 17:
=== XML ===
=== XML ===
<pre>
<pre>
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>


<Contacts>
<contacts>
   <Contact>
   <contact id="1">
     <Name>
     <name>
       <FirstName> Mart </FirstName>
       <firstname required="true"> Mart </firstname>
       <LastName> Tamm </LastName>
       <middlenames>
     </Name>
        <middlename required="false"></middlename>
     <Address>
      </middlenames>
       <Country> Eesti </Country>
      <lastname required="true"> Tamm </lastname>
      <County> Tartumaa </County>
     </name>
      <TownOrVillage> Tartu </TownOrVillage>
     <addresses>
      <StreetOrFarm> Põllu </StreetOrFarm>
       <address type="default">
      <HouseNr> 6 </HouseNr>
        <country> Eesti </country>
      <ZIPCode> 50210 </ZIPCode>
        <county> Tartumaa </county>
     </Address>
        <townorvillage> Tartu </townorvillage>
     <Phones>
        <streetorfarm> Põllu </streetorfarm>
       <Phone> 7249959 </Phone>
        <housenr> 6 </housenr>
       <Mobile> 53345699 </Mobile>
        <zipcode> 50210 </zipcode>
     </Phones>
      </address>
 
     </addresses>
     <Name>
     <phones>
       <FirstName> Linda </FirstName>
       <phone type="landline"> 7249959 </phone>
       <LastName> Kuusk </LastName>
       <phone type="mobile"> 53345699 </phone>
     </Name>
      <phone type="skype"></phone>
     <Address>
     </phones>
       <Country> Eesti </Country>
    <comments required="false"></comments>
      <County> Harjumaa </County>
  </contact>
      <TownOrVillage> Tallinn </TownOrVillage>
  <contact id="2">
      <StreetOrFarm> Akadeemia tee </StreetOrFarm>
     <name>
      <HouseNr> 28 </HouseNr>
       <firstname required="true"> Linda </firstname>
      <ZIPCode> 12300 </ZIPCode>
       <middlenames>
     </Address>
        <middlename required="false"></middlename>
     <Phones>
      </middlenames>
       <Phone> 6359866 </Phone>
      <lastname required="true"> Kuusk </lastname>
       <Mobile> 56777521 </Mobile>
     </name>
     </Phones>
     <addresses>
   </Contact>
       <address id="1" type="default">
</Contacts>
        <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