Meeskond "Tact": Difference between revisions
From ICO wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
===XML=== | ===XML=== | ||
<source lang="xml"> | <source lang="xml"> | ||
<?xml version="1.0" encoding="utf-8"?> | |||
<kontaktid> | |||
<kontakt> | |||
<nimi> | |||
<eesnimi>Jaan</eesnimi> | |||
<perenimi>Igamees</perenimi> | |||
</nimi> | |||
<epost tyyp="too">jaantoo@gmail.com</epost> | |||
<epost tyyp="kodu">jaankodu@gmail.com</epost> | |||
<telefon tyyp="mobiil" peamine="true">5500000</telefon> | |||
<telefon tyyp="tavaline">5000000</telefon> | |||
<aadress> | |||
<nr>4c</nr> | |||
<tanav>Raja</tanav> | |||
<asula>Tallinn</asula> | |||
<maakond>Harjumaa</maakond> | |||
<riik>Eesti</riik> | |||
<indeks>67890</indeks> | |||
</aadress> | |||
<sotsiaalne> | |||
<wlm>jaan@hotmail.com</wlm> | |||
<facebook>http://facebook.com/37289</facebook> | |||
<orkut>http://orkut.com/3289783</orkut> | |||
<skype>jIgamees</skype> | |||
<twitter>http://twitter.com/jIgamees</twitter> | |||
</sotsiaalne> | |||
<pilt>http://profile.ak.fbcdn.net/hprofile-ak-snc4/49700_1635097062_7825_q.jpg</pilt> | |||
</kontakt> | |||
</kontaktid> | |||
</source> | </source> | ||
===XML Schema=== | ===XML Schema=== | ||
<source lang="xml"> | <source lang="xml"> | ||
<?xml version="1.0" encoding="utf-8"?> | |||
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |||
<xs:element name="kontaktid"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="kontakt"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="nimi"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="eesnimi" type="xs:string" /> | |||
<xs:element name="perenimi" type="xs:string" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
<xs:element maxOccurs="unbounded" name="epost"> | |||
<xs:complexType> | |||
<xs:simpleContent> | |||
<xs:extension base="xs:string"> | |||
<xs:attribute name="tyyp" type="xs:string" use="required" /> | |||
</xs:extension> | |||
</xs:simpleContent> | |||
</xs:complexType> | |||
</xs:element> | |||
<xs:element maxOccurs="unbounded" name="telefon"> | |||
<xs:complexType> | |||
<xs:simpleContent> | |||
<xs:extension base="xs:unsignedInt"> | |||
<xs:attribute name="tyyp" type="xs:string" use="required" /> | |||
<xs:attribute name="peamine" type="xs:boolean" use="optional" /> | |||
</xs:extension> | |||
</xs:simpleContent> | |||
</xs:complexType> | |||
</xs:element> | |||
<xs:element name="aadress"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="nr" type="xs:string" /> | |||
<xs:element name="tanav" type="xs:string" /> | |||
<xs:element name="asula" type="xs:string" /> | |||
<xs:element name="maakond" type="xs:string" /> | |||
<xs:element name="riik" type="xs:string" /> | |||
<xs:element name="indeks" type="xs:unsignedInt" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
<xs:element name="sotsiaalne"> | |||
<xs:complexType> | |||
<xs:sequence> | |||
<xs:element name="wlm" type="xs:string" /> | |||
<xs:element name="facebook" type="xs:string" /> | |||
<xs:element name="orkut" type="xs:string" /> | |||
<xs:element name="skype" type="xs:string" /> | |||
<xs:element name="twitter" type="xs:string" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
<xs:element name="pilt" type="xs:string" /> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:sequence> | |||
</xs:complexType> | |||
</xs:element> | |||
</xs:schema> | |||
</source> | </source> | ||
Revision as of 11:21, 22 February 2011
Teema
Meeskond
- Mihkel Sokk
- Jaak Lehtsalu
- Martin Lensment
XML Failid
XML
<?xml version="1.0" encoding="utf-8"?>
<kontaktid>
<kontakt>
<nimi>
<eesnimi>Jaan</eesnimi>
<perenimi>Igamees</perenimi>
</nimi>
<epost tyyp="too">jaantoo@gmail.com</epost>
<epost tyyp="kodu">jaankodu@gmail.com</epost>
<telefon tyyp="mobiil" peamine="true">5500000</telefon>
<telefon tyyp="tavaline">5000000</telefon>
<aadress>
<nr>4c</nr>
<tanav>Raja</tanav>
<asula>Tallinn</asula>
<maakond>Harjumaa</maakond>
<riik>Eesti</riik>
<indeks>67890</indeks>
</aadress>
<sotsiaalne>
<wlm>jaan@hotmail.com</wlm>
<facebook>http://facebook.com/37289</facebook>
<orkut>http://orkut.com/3289783</orkut>
<skype>jIgamees</skype>
<twitter>http://twitter.com/jIgamees</twitter>
</sotsiaalne>
<pilt>http://profile.ak.fbcdn.net/hprofile-ak-snc4/49700_1635097062_7825_q.jpg</pilt>
</kontakt>
</kontaktid>
XML Schema
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="kontaktid">
<xs:complexType>
<xs:sequence>
<xs:element name="kontakt">
<xs:complexType>
<xs:sequence>
<xs:element name="nimi">
<xs:complexType>
<xs:sequence>
<xs:element name="eesnimi" type="xs:string" />
<xs:element name="perenimi" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element maxOccurs="unbounded" name="epost">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="tyyp" type="xs:string" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element maxOccurs="unbounded" name="telefon">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:unsignedInt">
<xs:attribute name="tyyp" type="xs:string" use="required" />
<xs:attribute name="peamine" type="xs:boolean" use="optional" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="aadress">
<xs:complexType>
<xs:sequence>
<xs:element name="nr" type="xs:string" />
<xs:element name="tanav" type="xs:string" />
<xs:element name="asula" type="xs:string" />
<xs:element name="maakond" type="xs:string" />
<xs:element name="riik" type="xs:string" />
<xs:element name="indeks" type="xs:unsignedInt" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="sotsiaalne">
<xs:complexType>
<xs:sequence>
<xs:element name="wlm" type="xs:string" />
<xs:element name="facebook" type="xs:string" />
<xs:element name="orkut" type="xs:string" />
<xs:element name="skype" type="xs:string" />
<xs:element name="twitter" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="pilt" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
XSLT
Materjalid
http://facebooksdk.codeplex.com/
http://code.google.com/p/google-gdata/
http://linqtotwitter.codeplex.com/
http://code.google.com/p/sqlite-net/
http://msdn.microsoft.com/en-us/library/7hs6sw69.aspx
Logi
22. Veebruar
Algne XML, Schema ja XSLT leht valmis
18. Veebruar
Projekti draft areneb