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>