All pastes #512115 Raw Edit

Miscellany

public text v1 · immutable
#512115 ·published 2007-05-26 18:45 UTC
rendered paste body
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- DWXMLSource="catalog.xml" -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" encoding="iso-8859-1" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
  <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>DVS Shoes - Summer 07 Collection - Signature Shoes</title>
    </head>
    <body>
    <xsl:for-each select="//product">
      <div class="product">
        <div class="productImage">
          <xsl:element name="img">
            <xsl:attribute name="src">shoes/<xsl:value-of select="../@tag" />/<xsl:value-of select="@id" />_1.gif</xsl:attribute>
            <xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute>
          </xsl:element>
        </div>
        <div class="productDesc">
          <table class="productDescTable">
            <tr>
              <td>Name:</td>
              <td><xsl:value-of select="name" /></td>
            </tr>
            <tr>
              <td>Price:</td>
              <td><xsl:text>&#8364;</xsl:text><xsl:value-of select="price" /></td>
            </tr>
            <tr>
              <td>Description:</td>
              <td><xsl:value-of select="description" /></td>
            </tr>
          </table>
        </div>
      </div>
    </xsl:for-each>
    </body>
    </html>
  </xsl:template>
</xsl:stylesheet>