Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <xsl:stylesheet version = "1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xlink="http://www.w3.org/1999/xlink">
- <xsl:template match = "/">
- <html>
- <head>
- <title>Eksamenstesting</title></head>
- <body>
- <xsl:apply-templates select="root/trafikkmelding"/>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="root/trafikkmelding">
- <xsl:apply-templates select="overskrift"/><br />
- <xsl:apply-templates select="ingress" /><br />
- </xsl:template>
- <xsl:template match="overskrift">
- Overskrift: <span style="color:#ff0000">
- <xsl:value-of select="."/></span>
- <br />
- </xsl:template>
- <xsl:template match="ingress">
- Beskrivelse: <span style="color:#ff0000">
- <xsl:value-of select="."/></span>
- <br />
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement