2017 Meeskond Poly

From ICO wiki
Revision as of 20:44, 19 March 2017 by Rkontson (talk | contribs) (Stiilifail)
Jump to navigationJump to search

Meeskond

  • Kristian Kalm
  • Roland Kontson

XML

Dokumendid

XML

<?xml version="1.0" encoding="utf-8" ?>
<parks>
  <park id="1">
    <name>Aseriaru</name>
    <country iso="EST">Estonia</country>
    <wind unit="m/s">1.7</wind>
    <power unit="kWh">
      <now>0</now>
      <month>2700</month>
      <year>48275</year>
    </power>
    <turbines>
      <active>7</active>
      <total>8</total>
      <power unit="kWh">24</power>
    </turbines>
  </park>
  <park id="2">
    <name>Paldiski</name>
    <country iso="EST">Estonia</country>
    <wind unit="m/s">3</wind>
    <power unit="kWh">
      <now>0.2</now>
      <month>6400</month>
      <year>80224</year>
    </power>
    <turbines>
      <active>17</active>
      <total>18</total>
      <power unit="kWh">45</power>
    </turbines>
  </park>
  <park id="3">
    <name>Tooma I</name>
    <country iso="EST">Estonia</country>
    <wind unit="m/s">5.3</wind>
    <power unit="kWh">
      <now>2.1</now>
      <month>2500</month>
      <year>33317</year>
    </power>
    <turbines>
      <active>8</active>
      <total>8</total>
      <power unit="kWh">16</power>
    </turbines>
  </park>
  <park id="4">
    <name>Tooma II</name>
    <country iso="EST">Estonia</country>
    <wind unit="m/s">5.2</wind>
    <power unit="kWh">
      <now>1.2</now>
      <month>999</month>
      <year>9170</year>
    </power>
    <turbines>
      <active>3</active>
      <total>3</total>
      <power unit="kWh">7</power>
    </turbines>
  </park>
</parks>

XSD

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="parks">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="park">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="name" type="xs:string" />
              <xs:element name="country">
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute name="iso" type="xs:string" use="required" />
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
              <xs:element name="wind">
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:decimal">
                      <xs:attribute name="unit" type="xs:string" use="required" />
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
              <xs:element name="power">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="now" type="xs:decimal" />
                    <xs:element name="month" type="xs:unsignedShort" />
                    <xs:element name="year" type="xs:unsignedInt" />
                  </xs:sequence>
                  <xs:attribute name="unit" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
              <xs:element name="turbines">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="active" type="xs:unsignedShort" />
                    <xs:element name="total" type="xs:unsignedShort" />
                    <xs:element name="power">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:unsignedShort">
                            <xs:attribute name="unit" type="xs:string" use="required" />
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="id" type="xs:unsignedInt" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

XSLT HTML


XSLT XML


Retsensioonid

...TODO

Veebiteenus

...TODO

Klientrakendused

...TODO