Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <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="html" indent="yes"/>
- <xsl:template match="/">
- <html>
- <head>
- <title>Zadatak 52</title>
- </head>
- <body>
- <ul>
- <xsl:for-each select="podaci/kolegij">
- <xsl:sort data-type="text" order="ascending" select="naziv"/>
- <li style="list-style-type:none">
- <h3>
- <xsl:apply-templates select="." />
- </h3>
- <ul>
- <xsl:for-each select="ishodiUcenja/ishod">
- <li style="list-style-type:none">
- <xsl:apply-templates select="."/>
- </li>
- </xsl:for-each>
- Ukupno ishoda:<span style="color:red">
- <xsl:value-of select="count(ishodiUcenja/ishod)"/>
- </span><br/>
- Ukupno bodova: <span style="color:red">
- <xsl:value-of select="sum(ishodiUcenja/ishod/@bodova)"/>
- </span><br/>
- </ul>
- </li>
- </xsl:for-each>
- </ul>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="podaci/kolegij">
- <xsl:value-of select="naziv"/>
- </xsl:template>
- <xsl:template match="ishodiUcenja/ishod">
- I <xsl:value-of select="@broj" /> - [<xsl:value-of select="count(poglavlje)"/> poglavlja, bodova: <xsl:value-of select="@bodova"/>]
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement