Meeskond "Tact": Difference between revisions

From ICO wiki
Jump to navigationJump to search
Line 46: Line 46:
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="kontaktid">
  <xs:element name="kontaktid">
<xs:complexType>
    <xs:complexType>
<xs:sequence>
      <xs:sequence>
<xs:element name="kontakt">
        <xs:element name="kontakt">
<xs:complexType>
          <xs:complexType>
<xs:sequence>
            <xs:sequence>
<xs:element name="nimi">
              <xs:element name="nimi">
<xs:complexType>
                <xs:complexType>
<xs:sequence>
                  <xs:sequence>
<xs:element name="eesnimi" type="xs:string" />
                    <xs:element name="eesnimi" type="xs:string" />
<xs:element name="perenimi" type="xs:string" />
                    <xs:element name="perenimi" type="xs:string" />
</xs:sequence>
                  </xs:sequence>
</xs:complexType>
                </xs:complexType>
</xs:element>
              </xs:element>
<xs:element maxOccurs="unbounded" name="epost">
              <xs:element maxOccurs="unbounded" name="epost">
<xs:complexType>
                <xs:complexType>
<xs:simpleContent>
                  <xs:simpleContent>
<xs:extension base="xs:string">
                    <xs:extension base="xs:string">
<xs:attribute name="tyyp" type="xs:string" use="required" />
                      <xs:attribute name="tyyp" type="xs:string" use="required" />
</xs:extension>
                    </xs:extension>
</xs:simpleContent>
                  </xs:simpleContent>
</xs:complexType>
                </xs:complexType>
</xs:element>
              </xs:element>
<xs:element maxOccurs="unbounded" name="telefon">
              <xs:element maxOccurs="unbounded" name="telefon">
<xs:complexType>
                <xs:complexType>
<xs:simpleContent>
                  <xs:simpleContent>
<xs:extension base="xs:unsignedInt">
                    <xs:extension base="xs:unsignedInt">
<xs:attribute name="tyyp" type="xs:string" use="required" />
                      <xs:attribute name="tyyp" type="xs:string" use="required" />
<xs:attribute name="peamine" type="xs:boolean" use="optional" />
                      <xs:attribute name="peamine" type="xs:boolean" use="optional" />
</xs:extension>
                    </xs:extension>
</xs:simpleContent>
                  </xs:simpleContent>
</xs:complexType>
                </xs:complexType>
</xs:element>
              </xs:element>
<xs:element name="aadress">
              <xs:element name="aadress">
<xs:complexType>
                <xs:complexType>
<xs:sequence>
                  <xs:sequence>
<xs:element name="nr" type="xs:string" />
                    <xs:element name="nr" type="xs:string" />
<xs:element name="tanav" type="xs:string" />
                    <xs:element name="tanav" type="xs:string" />
<xs:element name="asula" type="xs:string" />
                    <xs:element name="asula" type="xs:string" />
<xs:element name="maakond" type="xs:string" />
                    <xs:element name="maakond" type="xs:string" />
<xs:element name="riik" type="xs:string" />
                    <xs:element name="riik" type="xs:string" />
<xs:element name="indeks" type="xs:unsignedInt" />
                    <xs:element name="indeks" type="xs:unsignedInt" />
</xs:sequence>
                  </xs:sequence>
</xs:complexType>
                </xs:complexType>
</xs:element>
              </xs:element>
<xs:element name="sotsiaalne">
              <xs:element name="sotsiaalne">
<xs:complexType>
                <xs:complexType>
<xs:sequence>
                  <xs:sequence>
<xs:element name="wlm" type="xs:string" />
                    <xs:element name="wlm" type="xs:string" />
<xs:element name="facebook" type="xs:string" />
                    <xs:element name="facebook" type="xs:string" />
<xs:element name="orkut" type="xs:string" />
                    <xs:element name="orkut" type="xs:string" />
<xs:element name="skype" type="xs:string" />
                    <xs:element name="skype" type="xs:string" />
<xs:element name="twitter" type="xs:string" />
                    <xs:element name="twitter" type="xs:string" />
</xs:sequence>
                  </xs:sequence>
</xs:complexType>
                </xs:complexType>
</xs:element>
              </xs:element>
<xs:element name="pilt" type="xs:string" />
              <xs:element name="pilt" type="xs:string" />
</xs:sequence>
            </xs:sequence>
</xs:complexType>
          </xs:complexType>
</xs:element>
        </xs:element>
</xs:sequence>
      </xs:sequence>
</xs:complexType>
    </xs:complexType>
</xs:element>
  </xs:element>
</xs:schema>
</xs:schema>
</source>
</source>

Revision as of 12:27, 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