[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] html output: removing unneeded body attributes?
Hi Robert, The body attributes come from a template dedicated to that purpose. See the template named 'body.attributes' in html/docbook.xsl. If you define that as an empty template in your customization layer, you will get no body attributes. Note that these attributes are defined in a template and not in an xsl:attribute-set. The problem with attribute-set is that custom attribute sets are merged with the original. There is no way for an attribute-set in a customization layer to turn off an attribute entirely once it has been defined in an attribute-set. You can override the value, or set the value to 'inherit' or something, but you cannot eliminate the attribute. Using a template avoids that problem. There is one attribute in body.attributes that you might want to keep. If you are producing any documents that read right to left (Hebrew or Arabic, for example), then keep the 'dir' attribute as defined there so the HTML will display properly for those languages. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Robert Nagle" <idiotprogrammer@gmail.com> To: <docbook-apps@lists.oasis-open.org> Sent: Sunday, December 12, 2010 3:43 PM Subject: [docbook-apps] html output: removing unneeded body attributes? > I'm trying to generate HTML output. > > I see that the body element contains this: > > <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" > alink="#0000FF"> > > Because I'm doing my styling mainly in css, I don't need these > defaults. I realize that I can probably override this in css, but is > there a db parameter for turning this off in the body element? > > > I tried enabling 2 parameters, > > <xsl:param name="html.cleanup" select="1"></xsl:param> > <xsl:param name="make.clean.html" select="1"></xsl:param> > > > but this did not seem to have any effect on this. (By the way, is it > all right to use both parameters simultaneously? > > > > > -- > Robert Nagle > 12777 Ashford Point Dr #1417 > Houston, Texas 77082 > 713 893 3424 > http://www.robertnagle.info > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]