Laenutajad: Difference between revisions
Line 12: | Line 12: | ||
===Stiilifail=== | ===Stiilifail=== | ||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- New document created with EditiX at Sat Mar 23 09:17:50 EET 2013 --> | |||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |||
<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:for-each select="prices/price-day"> For Day: |
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:for-each select="prices/price-day"> For Day: |
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:for-each select="prices/price-day"> For Day: |
</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.