[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: XSL stylesheets (1.2.9) and sections
I'm using xsltproc (from libxslt) and dobcook XML 4.1.2, XSL stylesheets 1.2.9. The XSL stylesheet inserts a style attribute "clear: all" which is not valid CSS according the the w3.org validator. Here's my fix stylesheet for anyone who's interested: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- the docbook stylesheets create an invalid css code = clear:all --> <xsl:template name="section.heading"> <xsl:param name="section" select="."/> <xsl:param name="level" select="'1'"/> <xsl:param name="title"/> <xsl:element name="h{$level}"> <xsl:attribute name="class">title</xsl:attribute> <xsl:if test="$css.decoration != '0'"> <xsl:if test="$level<3"> <xsl:attribute name="style">clear: both</xsl:attribute> </xsl:if> </xsl:if> <a> <xsl:attribute name="name"> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="$section"/> </xsl:call-template> </xsl:attribute> </a> <xsl:copy-of select="$title"/> </xsl:element> </xsl:template> </xsl:stylesheet> Rob
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC