This is the mail archive of the mailing list .

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

XSL stylesheets (1.2.9) and sections

I'm using xsltproc (from libxslt) and dobcook XML 4.1.2, XSL stylesheets

The XSL stylesheet inserts a style attribute "clear: all" which is not
valid CSS according the the validator.

Here's my fix stylesheet for anyone who's interested:

<xsl:stylesheet xmlns:xsl="";

<!-- 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&lt;3">
        <xsl:attribute name="style">clear: both</xsl:attribute>
      <xsl:attribute name="name">
        <xsl:call-template name="">
          <xsl:with-param name="object" select="$section"/>
    <xsl:copy-of select="$title"/>



To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]