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">
- <xsl:output method = "html" encoding="Windows-1252" />
- <xsl:template match="/">
- <html>
- <head>
- <title><xsl:value-of select="daten/web" /></title>
- <link rel="stylesheet" href="TEMPLATE.css"/>
- </head>
- <body>
- <h1><xsl:value-of select="daten/titel" /></h1>
- <ul>
- <xsl:apply-templates select="daten/features"/>
- </ul>
- <form>
- <xsl:apply-templates select="daten/farben/farbe"/>
- </form>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="daten/features">
- <li><xsl:value-of select="preis" /></li>
- <li><xsl:value-of select="nr"/></li>
- <li><xsl:value-of select="tuner"/></li>
- <li><xsl:value-of select="sound"/></li>
- <li><xsl:value-of select="speziel"/></li>
- </xsl:template>
- <xsl:template match="daten/farben/farbe">
- <input type="radio" id="frb" name="farbe">
- <xsl:attribute name="value" ><xsl:value-of select=" . "/></xsl:attribute>
- </input>Farbe: <xsl:value-of select="." /><p/>
- </xsl:template>
- <xsl:template match="daten/bilder/
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement