??? Profit

From ICO wiki
Jump to navigationJump to search

Meeskond "??? Profit"

  • Aivar Romandi
  • Frank Karl Koppel

XML/XSD/XSLT

XML

<?xml version="1.0" encoding="utf-8"?>
<Series>
  <Show id="0" releaseYear="2010" onGoing="true" country="USA" language="English">
    <ShowName><![CDATA[Hea saate nimi]]></ShowName>
    <ShowDescription><![CDATA[saade on selline]]> </ShowDescription>
    <BannerUrl><![CDATA[http://img2.tvtome.com/i/u/0aa3afb3cbe3468fc6e43e50070b0810.png]]></BannerUrl>
    <Genres>
      <Genre><![CDATA[drama]]></Genre>
    </Genres>
    <Seasons>
      <Season nr="1">
        <SeasonDescription><![CDATA[description]]></SeasonDescription>
        <Episodes>
          <Episode nr="1" releaseDate="2010-10-10" length="88" lengthType="min">
            <EpisodeName><![CDATA[What?!]]></EpisodeName>
            <EpisodeDescription><![CDATA[description]]></EpisodeDescription>
          </Episode>
        </Episodes>
      </Season>
      <Season nr="2">
        <SeasonDescription><![CDATA[description]]></SeasonDescription>
        <Episodes>
          <Episode nr="1" releaseDate="2010-10-10" length="88" lengthType="min">
            <EpisodeName><![CDATA[What?!]]></EpisodeName>
            <EpisodeDescription><![CDATA[description]]></EpisodeDescription>
          </Episode>
        </Episodes>
      </Season>
    </Seasons>
    <Credits>
      <Actors>
        <Actor sex="m" birthDate="1980-10-10">
          <FirstName><![CDATA[Pakiraam]]></FirstName>
          <LastName><![CDATA[Peeter]]></LastName>
          <Role><![CDATA[Anderson]]></Role>
        </Actor>
      </Actors>
      <Directors>
        <Director sex="m" birthDate="1980-10-10">
          <FirstName><![CDATA[Peeter]]></FirstName>
          <LastName><![CDATA[Pakiraam]]></LastName>
        </Director>
      </Directors>
    </Credits>
  </Show>
</Series>

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="Series">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Show" maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ShowName" type="xs:string"/>
              <xs:element name="ShowDescription" type="xs:string" minOccurs="0" maxOccurs="1"/>
              <xs:element name="BannerUrl" type="xs:string" minOccurs="0" maxOccurs="1" />
              <xs:element name="Genres">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Genre" type="xs:string" maxOccurs="unbounded"/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="Seasons">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Season" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="SeasonDescription" type="xs:string"/>
                          <xs:element name="Episodes">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Episode">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="EpisodeName" type="xs:string"/>
                                      <xs:element name="EpisodeDescription" type="xs:string"/>
                                    </xs:sequence>
                                    <xs:attribute name="nr" type="xs:unsignedByte" use="required" />
                                    <xs:attribute name="releaseDate" type="xs:date" use="required" />
                                    <xs:attribute name="length" type="xs:unsignedByte" use="required" />
                                    <xs:attribute name="lengthType" type="xs:string" use="required" />
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="nr" type="xs:unsignedByte" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="Credits">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Actors">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Actor" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="FirstName" type="xs:string"/>
                                <xs:element name="LastName" type="xs:string" />
                                <xs:element name="Role" type="xs:string" maxOccurs="unbounded" />
                              </xs:sequence>
                              <xs:attribute name="sex" type="xs:string" use="required" />
                              <xs:attribute name="birthDate" type="xs:date" use="required" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="Directors">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Director" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="FirstName" type="xs:string"/>
                                <xs:element name="LastName" type="xs:string"/>
                              </xs:sequence>
                              <xs:attribute name="sex" type="xs:string" use="required" />
                              <xs:attribute name="birthDate" type="xs:date" use="required" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="id" type="xs:unsignedByte" use="required" />
            <xs:attribute name="releaseYear" type="xs:gYear" use="required" />
            <xs:attribute name="endYear" type="xs:gYear" use="optional" />
            <xs:attribute name="onGoing" type="xs:boolean" use="required" />
            <xs:attribute name="country" type="xs:string" use="required" />
            <xs:attribute name="language" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

XSLT HTML

SIIA KOOD

XSLT XML

SIIA KOOD

Väljund

SIIA PILT VMS