Lopetajad: Difference between revisions

From ICO wiki
Jump to navigationJump to search
(Created page with "=Ehk lõpetab see aasta= ==Meeskonna liikmed== *Braid Torn *Heiki Linnamägi *Helge Saks ==XML andmefail== <pre> <?xml version="1.0" encoding="utf-8" ?> <Seriaalid> <Seriaal> …")
 
Line 4: Line 4:
*Heiki Linnamägi
*Heiki Linnamägi
*Helge Saks
*Helge Saks
*Tarmo Sillajõe


==XML andmefail==
==XML andmefail==

Revision as of 14:25, 7 March 2015

Ehk lõpetab see aasta

Meeskonna liikmed

  • Braid Torn
  • Heiki Linnamägi
  • Helge Saks
  • Tarmo Sillajõe

XML andmefail

<?xml version="1.0" encoding="utf-8" ?>
<Seriaalid>
  <Seriaal>
    <Nimi>
      Game of thrones
    </Nimi>
    <Hooajad>
      <Hooaeg number="1">
        <Eelarve>$60 million</Eelarve>
        <Näitlejad>
          <Näitleja>
            <Nimi>Sean Bean</Nimi>
            <Roll>Eddard 'Ned' Stark</Roll>
          </Näitleja>
          <Näitleja>
            <Nimi>Mark Addy</Nimi>
            <Roll>Robert Baratheon</Roll>
          </Näitleja>
          <Näitleja>
            <Nimi>Nikolaj Coster-Waldau</Nimi>
            <Roll>Jaime Lannister</Roll>
          </Näitleja>
          <Näitleja>
            <Nimi>Michelle Fairley</Nimi>
            <Roll>Catelyn Stark</Roll>
          </Näitleja>
          <Näitleja>
            <Nimi>Lena Headey</Nimi>
            <Roll>Cersei Lannister</Roll>
          </Näitleja>
        </Näitlejad>
        <Osad>
          <Osa nimi="Winter Is Coming">
            <Kokkuvõte>
              Jon Arryn, the Hand of the King, is dead. King Robert Baratheon plans to ask his oldest friend, Eddard Stark, to take Jon's place. Across the sea, Viserys Targaryen plans to wed his sister to a nomadic warlord in exchange for an army.
            </Kokkuvõte>
            <IlmumisAeg>
              8 Sep. 2011
            </IlmumisAeg>
          </Osa>
          <Osa nimi="The Kingsroad">
            <Kokkuvõte>
              While Bran recovers from his fall, Ned takes only his daughters to Kings Landing. Jon Snow goes with his uncle Benjen to The Wall. Tyrion joins them.
            </Kokkuvõte>
            <IlmumisAeg>
              15 Sep. 2011
            </IlmumisAeg>
          </Osa>
        </Osad>
      </Hooaeg>
      <Hooaeg number="2">
        <Eelarve>$69 million</Eelarve>
        <Näitlejad>
          <Näitleja>
            <Nimi>Peter Dinklage</Nimi>
            <Roll>Tyrion Lannister</Roll>
          </Näitleja>
          <Näitleja>
            <Nimi>Nikolaj Coster-Waldau</Nimi>
            <Roll>Jaime Lannister</Roll>
          </Näitleja>
          <Näitleja>
            <Nimi>Lena Headey</Nimi>
            <Roll>Cersei Lannister</Roll>
          </Näitleja>
        </Näitlejad>
        <Osad>
          <Osa nimi="The North Remembers">
            <Kokkuvõte>
              Tyrion arrives at Kings Landing to take his father's place as Hand of the King. Stannis Baratheon plans to take the Iron Throne for his own. Robb tries to decide his next move in the war. The Night's Watch arrive at the house of Craster.
            </Kokkuvõte>
            <IlmumisAeg>
              8 Apr. 2012
            </IlmumisAeg>
          </Osa>
          <Osa nimi="The Night Lands">
            <Kokkuvõte>
              Arya makes friends with Gendry. Tyrion tries to take control of the small council. Theon arrives at his home, Pyke, in order to persuade his father into helping Robb with the war. Jon tries to investigate Craster's secret.
            </Kokkuvõte>
            <IlmumisAeg>
              8 Apr. 2012
            </IlmumisAeg>
          </Osa>
        </Osad>
      </Hooaeg>
    </Hooajad>
  </Seriaal>
  <Seriaal>
    <Nimi>
      House of Cards
    </Nimi>
    <Hooajad>
      <Hooaeg number="1">
        <Eelarve>$50 million</Eelarve>
        <Näitlejad>
          <Näitleja>
            <Nimi>Kevin Spacey</Nimi>
            <Roll>Francis Underwood</Roll>
          </Näitleja>
          <Näitleja>
            <Nimi>Robin Wright</Nimi>
            <Roll>Claire Underwood</Roll>
          </Näitleja>
        </Näitlejad>
        <Osad>
          <Osa nimi="Chapter 1">
            <Kokkuvõte>
              Congressman Francis Underwood has been declined the chair for Secretary of State. He's now gathering his own team to plot his revenge. Zoe Barnes, a reporter for the Washington Herald, will do anything to get her big break.
            </Kokkuvõte>
            <IlmumisAeg>
              1 Feb. 2013
            </IlmumisAeg>
          </Osa>
          <Osa nimi="Chapter 2">
            <Kokkuvõte>
              Francis and Doug plan to frame Secretary of State nominee, Michael Kern. Meanwhile, Zoe's popularity at the Washington Herald continues to grow.
            </Kokkuvõte>
            <IlmumisAeg>
              1 Feb. 2013
            </IlmumisAeg>
          </Osa>
          <Osa nimi="Chapter 3">
            <Kokkuvõte>
              Francis heads for his hometown to deal with a crisis. Zoe negotiates the politics of being a journalist on the rise. Claire finds herself a new business partner.
            </Kokkuvõte>
            <IlmumisAeg>
              1 Feb. 2013
            </IlmumisAeg>
          </Osa>
        </Osad>
      </Hooaeg>
    </Hooajad>
  </Seriaal>
</Seriaalid>

XML skeemifail

<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Seriaalid">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" name="Seriaal">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Nimi" type="xs:string" />
              <xs:element name="Hooajad">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element maxOccurs="unbounded" name="Hooaeg">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Eelarve" type="xs:string" />
                          <xs:element name="Näitlejad">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element maxOccurs="unbounded" name="Näitleja">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="Nimi" type="xs:string" />
                                      <xs:element name="Roll" type="xs:string" />
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="Osad">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element maxOccurs="unbounded" name="Osa">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="Kokkuvõte" type="xs:string" />
                                      <xs:element name="IlmumisAeg" type="xs:string" />
                                    </xs:sequence>
                                    <xs:attribute name="nimi" type="xs:string" use="required" />
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="number" type="xs:unsignedByte" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

XSLT fail

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
  <xsl:output method="xml" indent="yes"/>
  <xsl:template match="/">
    <html>
      <body>
        <table style="text-align: left">
          <tr>
            <th style="width: 80px"></th>
            <th style="width: 80px"></th>
            <th style="width: 120px"></th>
            <th style="width: 120px"></th>
            <th style="width: 120px"></th>
            <th style="width: 120px"></th>
          </tr>
          <xsl:for-each select="Seriaalid/Seriaal">
            <tr>
              <th>Tv series</th>
              <td colspan="4">
                <xsl:value-of select="Nimi"/>
              </td>
            </tr>
            <tr>
              <th></th>
              <th colspan="5">Seasons</th>
            </tr>
            <xsl:for-each select="Hooajad/Hooaeg">
              <tr>
                <th colspan="2"></th>
                <th>Season</th>
                <th colspan="4">Budget</th>
              </tr>
              <tr>
                <td colspan="2"></td>
                <td>
                  <xsl:value-of select="@number"/>
                </td>
                <td colspan="4">
                  <xsl:value-of select="Eelarve"/>
                </td>
              </tr>
              <tr>
                <th colspan="2"></th>
                <th>Actors</th>
                <th>Nimi</th>
                <th colspan="3">Role</th>
              </tr>
              <xsl:for-each select="Näitlejad/Näitleja">
                <tr>
                  <td colspan="3"></td>
                  <td>
                    <xsl:value-of select="Nimi"/>
                  </td>
                  <td colspan="3">
                    <xsl:value-of select="Roll"/>
                  </td>
                </tr>
              </xsl:for-each>
              <tr/>
              <tr>
                <th colspan="2"></th>
                <th>Episodes</th>
                <th>Name</th>
                <th>Summary</th>
                <th colspan="2">Premier</th>
              </tr>
              <xsl:for-each select="Osad/Osa">
                <tr>
                  <td colspan="3"></td>
                  <td>
                    <xsl:value-of select="@nimi"/>
                  </td>
                  <td>
                    <xsl:value-of select="Kokkuvõte"/>
                  </td>
                  <td colspan="2">
                    <xsl:value-of select="IlmumisAeg"/>
                  </td>
                </tr>
              </xsl:for-each>
            </xsl:for-each>
          </xsl:for-each>
        </table>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>

Veebiteenus

Klientrakendus