All pastes #525481 Raw Edit

Anonymous

public text v1 · immutable
#525481 ·published 2007-05-31 11:46 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:param name="param0" />
  <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</title>
    </head>
    <body>
    <xsl:for-each select="//product[@id=$param0]">
      <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"> <span class="left"><strong>Name:</strong> <xsl:value-of select="name" /></span><br /><span class="stock">
          <form action="" id="instock">
            <div>
              <select id="sizes" name="sizes">
                <xsl:for-each select="//instock">
                  <xsl:element name="option">
                    <xsl:attribute name="value"><xsl:value-of select="//instock" /> </xsl:attribute>
                    <xsl:value-of select="//instock" />
                  </xsl:element>
                </xsl:for-each>
              </select>
            </div>
          </form>
          </span> <span class="left"><strong>Price:</strong><xsl:text> &#8364;</xsl:text><xsl:value-of select="price" /></span><br /><span class="buy">Buy now.</span><br  />
          <span><strong>Description:</strong></span><br />
          <span><xsl:value-of select="description" /></span>
        </div>
      </div>
    </xsl:for-each>
    </body>
    </html>
  </xsl:template>
</xsl:stylesheet>