Hi all,
Here is a snippet from my XSL file:
The class attribute isn't being applied to the div element - the div shows up fine in the output.
Can anyone help me with this, please?
Thanks as always
Craftor

Here is a snippet from my XSL file:
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform">[/URL]
<xsl:output method="html" omit-xml-declaration="yes"/>
<xsl:template match="mytemplate" xml:space="preserve">
<div>
<xsl:attribute name="class">
newsbyline
</xsl:attribute>
Your text here
</div>
</xsl:template>
</xsl:stylesheet>
The class attribute isn't being applied to the div element - the div shows up fine in the output.
Can anyone help me with this, please?
Thanks as always
Craftor