This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Removing doctype from generated html
- From: "Kenneth Johansson" <ke-joh at sectra dot se>
- To: "DOCBOOK-APPS" <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 6 Jun 2003 11:49:44 +0200
- Subject: [docbook-apps] Removing doctype from generated html
I have a script, which creates a banner with the company logo at the top of my HTML Help file.
Unfortunutaly the script fails because of the Doctype declaration at the top of my document. Can I remove the doctype declaration or in some way make the script ignore the declaration.
best regards,
/Kenneth
The script and banner:
script:
window.onload = resizeBanner;
window.onresize = resizeBanner;
function resizeBanner()
{
if (document.body.clientWidth == 0) return;
var oBanner= document.all.item("nsbanner");
var oText = document.all.item("nstext");
if (oText == null) return;
var oBannerRow1 = document.all.item("bannerrow1");
if (oBannerRow1 != null)
{
var iScrollWidth = bodyID.scrollWidth;
try { oBannerRow1.style.marginRight = 0 - iScrollWidth; }
catch (e) { return; }
}
if (oBanner != null)
{
try
{
document.body.scroll = "no";
oText.style.overflow = "auto";
oBanner.style.width = document.body.offsetWidth - 2;
oText.style.paddingRight = "20px";
oText.style.width = document.body.offsetWidth - 4;
oText.style.top = 0;
if (document.body.offsetHeight > oBanner.offsetHeight + 4)
oText.style.height = document.body.offsetHeight - (oBanner.offsetHeight + 4);
else
oText.style.height = 0;
} catch (e) { return; }
}
}
---------------
banner:
<div id="nsbanner">
<div id="bannerrow1">
<table width="100%" border="0" cellspacing="0" cellpadding="0" valign="baseline" background="logostrip_pond_fill.gif" ID="Table1">
<tr>
<td nowrap="true" align="left" width="400px" height="26px">
<p style="color:#FFFFFF; font-weight:bold; margin-left:.7em; margin-bottom:0; margin-top:0; font-size:110%">
<xsl:apply-templates select="ancestor-or-self::book" mode="title.markup"/>
</p>
</td>
<td align="right" width="15%"><img src="logostrip_pond_right.gif" width="122" height="26" /></td>
</tr>
</table>
</div>
<h1> <xsl:apply-templates select="ancestor-or-self::chapter" mode="title.markup"/></h1>
</div>
<BODY id="bodyID">
<div id="nstext">
BODYCONTENT
</div
</BODY>
<img src="logostrip_pond_right.gif" BORDER="0" ALIGN="top" style="visibility:hidden" />
<img src="logostrip_pond_fill.gif" BORDER="0" ALIGN="top" style="visibility:hidden" />
--------------------------------------------------------
Kenneth Johansson Technical Documentation Manager
Sectra Imtec AB
Teknikringen 2 E-mail: ke-joh AT sectra DOT se
SE-583 30 Linköping Phone: +46 13 23 52 00
SWEDEN Web: http://www.sectra.se
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org