View Single Post
  #1 (permalink)  
Old January 12th, 2008, 09:30 PM
chobo chobo is offline
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default class names in xslt not working

Hi, I am transforming an XML file to html and in my xslt stylesheet I have css class names on certain html elements, but styles using class names don't seem to work. It works if I use element names and not class names... Does anyone know what is going on? Thanks in advance:

Code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

  <xsl:output method="html" indent="yes"/>

  <xsl:template match="/">
    <xsl:apply-templates select="//ItemAttributes" />
  </xsl:template>

  <xsl:template match="ItemAttributes">
    <ol class="product">
      <li><xsl:value-of select="Author"/></li>
    </ol>
  </xsl:template>

</xsl:stylesheet>
Reply With Quote