This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


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

XSL HTML stylesheets: support for DOCTYPE?


Norm,

Could you add support for adding a DOCTYPE to HTML
output pages?  Just a small <xsl:template
name="doctype"/> that we could override would be fine,
or you could provide a default DOCTYPE:

<xsl:template name="doctype">
  <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE
html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"></xsl:text>
</xsl:template>

Then insert <xsl:call-template name="doctype"/> in
these places, just before the <html> tag:

docbook.xsl
  <xsl:template match="*" mode="process.root">
chunk_common.xsl
  <xsl:template name="chunk-element-content">

Thanks.

-M


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

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