Laenutajad: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Ktonisma (talk | contribs)
Ktonisma (talk | contribs)
Line 12: Line 12:


===Stiilifail===
===Stiilifail===
  Igal projektimeeskonnal on piiramatu õigus saada õppejõu käest konsultatsiooni ja juhendamist oma
<?xml version="1.0" encoding="UTF-8"?>
  töö tegemiseks, kas harjutuste ajal või pärast harjutusi ja loenguid. Eriaegade suhtes saab sõlmida
 
  õppejõuga kokkuleppeid kontaktidel
<!-- New document created with EditiX at Sat Mar 23 09:17:50 EET 2013 -->
  mait.poska [ät] itcollege.ee (+372 53 469 734) või
 
  kaarel.raspel [ät] gmail.com (+372 522 2468)
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  (teksti originaalautor Priit Raspel)
 
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<body>
<h1>Movie Store</h1>
<h4>Action Movies</h4>
<table border="1" width="70%" >
<tr bgcolor="#82B4B4">
<td>Title</td>
<td>Description</td>
<td>Subtitles</td>
<td>Director</td>
<td>Prices</td>
</tr>
<xsl:for-each select="movieStore/movies/žanr/action/movie">
<tr>
<td style="width:15%;">
<xsl:value-of select="title"/>
</td>
<td>
<xsl:value-of select="description"/>
</td>
<td>
<xsl:for-each select="subtitles/subtitle">
<li style="list-style-type: none; text-align:center;" ><xsl:value-of select="@value"/></li>
</xsl:for-each>
</td>
<td style="width:10%;">
<li style="list-style-type: none;"><xsl:value-of select="director"/>
</li>
</td>
<td style="width:10%;" >
<xsl:for-each select="prices/price-day">
<em>For Day:</em>
<li style="list-style-type: none; text-align:center;" ><xsl:value-of select="@value"/></li>
</xsl:for-each>
<xsl:for-each select="prices/price-week">
<em>For Week:</em>
<li style="list-style-type: none; text-align:center;" ><xsl:value-of select="@value"/></li>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</table>
<h4>Horror Movies</h4>
<table border="1" width="70%" >
<tr bgcolor="#82B4B4">
<td>Title</td>
<td>Description</td>
<td>Subtitles</td>
<td>Director</td>
<td>Prices</td>
</tr>
<xsl:for-each select="movieStore/movies/žanr/horror/movie">
<tr>
<td style="width:15%;">
<xsl:value-of select="title"/>
</td>
<td>
<xsl:value-of select="description"/>
</td>
<td>
<xsl:for-each select="subtitles/subtitle">
<li style="list-style-type: none; text-align:center;" ><xsl:value-of select="@value"/></li>
</xsl:for-each>
</td>
<td style="width:10%;">
<li style="list-style-type: none;"><xsl:value-of select="director"/>
</li>
</td>
<td style="width:10%;" >
<xsl:for-each select="prices/price-day">
<em>For Day:</em>
<li style="list-style-type: none; text-align:center;" ><xsl:value-of select="@value"/></li>
</xsl:for-each>
<xsl:for-each select="prices/price-week">
<em>For Week:</em>
<li style="list-style-type: none; text-align:center;" ><xsl:value-of select="@value"/></li>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</table>
<h4>Comedy Movies</h4>
<table border="1" width="70%" >
<tr bgcolor="#82B4B4">
<td>Title</td>
<td>Description</td>
<td>Subtitles</td>
<td>Director</td>
<td>Prices</td>
</tr>
<xsl:for-each select="movieStore/movies/žanr/comedy/movie">
<tr>
<td style="width:15%;">
<xsl:value-of select="title"/>
</td>
<td>
<xsl:value-of select="description"/>
</td>
<td>
<xsl:for-each select="subtitles/subtitle">
<li style="list-style-type: none; text-align:center;" ><xsl:value-of select="@value"/></li>
</xsl:for-each>
</td>
<td style="width:10%;">
<li style="list-style-type: none;"><xsl:value-of select="director"/>
</li>
</td>
<td style="width:10%;" >
<xsl:for-each select="prices/price-day">
<em>For Day:</em>
<li style="list-style-type: none; text-align:center;" ><xsl:value-of select="@value"/></li>
</xsl:for-each>
<xsl:for-each select="prices/price-week">
<em>For Week:</em>
<li style="list-style-type: none; text-align:center;" ><xsl:value-of select="@value"/></li>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
 
</xsl:template>
 
</xsl:stylesheet>


===Skeemifail===
===Skeemifail===

Revision as of 23:06, 23 March 2013

Meeskond

  • Kristjan Tõnismäe
  • Veiko Lääts

Kirjeldus

Eesmärk on luua kodune filmide laenutus.

XML fail

Stiilifail

<?xml version="1.0" encoding="UTF-8"?>


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="html"/>

<xsl:template match="/"> <html> <body>

Movie Store

Action Movies

<xsl:for-each select="movieStore/movies/žanr/action/movie"> </xsl:for-each>
Title Description Subtitles Director Prices

<xsl:value-of select="title"/>

<xsl:value-of select="description"/>

<xsl:for-each select="subtitles/subtitle">

  • <xsl:value-of select="@value"/>
  • </xsl:for-each>
  • <xsl:value-of select="director"/>
  • <xsl:for-each select="prices/price-day"> For Day:

  • <xsl:value-of select="@value"/>
  • </xsl:for-each> <xsl:for-each select="prices/price-week"> For Week:
  • <xsl:value-of select="@value"/>
  • </xsl:for-each>

    Horror Movies

    <xsl:for-each select="movieStore/movies/žanr/horror/movie"> </xsl:for-each>
    Title Description Subtitles Director Prices

    <xsl:value-of select="title"/>

    <xsl:value-of select="description"/>

    <xsl:for-each select="subtitles/subtitle">

  • <xsl:value-of select="@value"/>
  • </xsl:for-each>
  • <xsl:value-of select="director"/>
  • <xsl:for-each select="prices/price-day"> For Day:

  • <xsl:value-of select="@value"/>
  • </xsl:for-each> <xsl:for-each select="prices/price-week"> For Week:
  • <xsl:value-of select="@value"/>
  • </xsl:for-each>

    Comedy Movies

    <xsl:for-each select="movieStore/movies/žanr/comedy/movie"> </xsl:for-each>
    Title Description Subtitles Director Prices

    <xsl:value-of select="title"/>

    <xsl:value-of select="description"/>

    <xsl:for-each select="subtitles/subtitle">

  • <xsl:value-of select="@value"/>
  • </xsl:for-each>
  • <xsl:value-of select="director"/>
  • <xsl:for-each select="prices/price-day"> For Day:

  • <xsl:value-of select="@value"/>
  • </xsl:for-each> <xsl:for-each select="prices/price-week"> For Week:
  • <xsl:value-of select="@value"/>
  • </xsl:for-each>

    </body> </html>

    </xsl:template>

    </xsl:stylesheet>

    Skeemifail

    Log

    21.märts 2013

    • Kokkusaamine

    23.märts 2013

    • Wiki lehe loomine, XML faili, stiilifaili ja skeemifaili lisamine.