Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Document : newstylesheet.xsl
- Created on : 8 styczeń 2015, 01:05
- Author : Lukasz
- Description:
- Purpose of transformation follows.
- -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output method="html"/>
- <!-- TODO customize transformation rules
- syntax recommendation http://www.w3.org/TR/xslt
- -->
- <xsl:template match="/">
- <html>
- <head><link rel="styesheet" type="text/css" href="style.css"/></head>
- <title>newstylesheet.xsl</title>
- <body>
- <xsl:apply-templates/><br/>
- testowo
- <img src="image/virtuspro.jpg" />
- </body>
- </html>
- </xsl:template>
- <xsl:template match="druzyna">
- <h1>
- Informacje turniejowe
- </h1>
- <div class="info">
- <xsl:for-each select="druzyna">
- <div class="druzyna">
- <div class="kraj">
- Kraj: <xsl:value-of select="@kraj" /><br />
- Decyzja: <xsl:value-of select="@decyzja" />
- </div>
- <div id="nazwa">
- <xsl:value-of select="nazwa" />
- </div>
- <div id="nazwa">
- <xsl:value-of select="kapitan" />
- </div>
- <div id="nazwa">
- <xsl:value-of select="data_przyjazdu" />
- </div>
- <div id="nazwa">
- test
- <xsl:value-of select="kod_druzyny" />
- </div>
- <div id="image">
- <!--img src="../image/virtuspro.jpg" /--> (TEST - to nie wyświetla)
- <xsl:element name="img">
- <xsl:attribute name="src">
- ../<xsl:value-of select="image" />
- </xsl:attribute>
- </xsl:element>
- <!--img src="{//turniej/druzyna/image}"/--> (TEST - to nie działa)
- </div>
- <div id="status">
- <xsl:value-of select="dyskwalifikacja" />
- </div>
- </div>
- </xsl:for-each>
- </div>
- <xsl:apply-templates />
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement