[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: DOCBOOK-APPS: Unexpected HTML output using customization of HTMLDocBook styles heet
Could someone help me spot what I'm doing wrong? I'm using the following stylesheet, which imports the html\docbook.xsl stylesheet for DocBook, but the resulting HTML file displays with Futura Book but no other formatting. Did I somehow override the html\docbook.xsl formatting by including this template where & how I did?
When I just use the html\docbook.xsl stylesheet, the resulting HTML file looks okay (i.e., has a basic table structure with Times font face), except for the tricky cells split into double rows ("morerows"), which don't display properly -- they get shifted over into third and fourth columns. Any help would be greatly appreciated.
**********XSL FILE*********************
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/strict"
exclude-result-prefixes="#default">
<xsl:import href="docbook.xsl"/>
<!-- Apply Futura face formatting to entry text. -->
<xsl:template match="entry">
<FONT FACE="Futura Book" SIZE="-1">
<xsl:apply-templates/>
</FONT>
</xsl:template>
</xsl:stylesheet>
*******************************************
And here's the XML file...
**********XML FILE*********************
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "../../DocBook4.1.2/docbookx.dtd">
<book>
<title>Xerces/Xalan vs. XP/XT</title><chapter>
<title>Comparison chart</title>
<table>
<title></title>
<tgroup cols="3"><colspec colnum="1" colname="col1"
colwidth="1.00*"/><colspec colnum="2" colname="col2" colwidth="1.58*"/><colspec
colnum="3" colname="col3" colwidth="1.30*"/>
<thead>
<row>
<entry colname="col1"></entry>
<entry colname="col2">Xerces/Xalan</entry>
<entry colname="col3">XP/XT</entry>
</row>
</thead>
<tbody>
<row valign="top">
<entry colname="col1" morerows="1" valign="top">HTML
stylesheet</entry>
<entry colname="col2" valign="top">For graphics - needs absolute
paths (or fix relative ones)</entry>
<entry colname="col3" valign="top">OK</entry>
</row>
<row>
<entry colname="col2">For tables - Split cells into rows moves
contents of split cell into fourth column; bad results (see next cell for XP/XT
-- must be problem with HTML stylesheet).</entry>
<entry colname="col3">For tables - Same problem as Xalan (must be
problem with HTML stylesheet)</entry>
</row>
<row>
<entry colname="col1" morerows="1">FO stylesheet</entry>
<entry colname="col2">For graphics - needs absolute paths (or fix
relative ones)</entry>
<entry colname="col3" morerows="1">For graphics - absolute paths
appear during XML to FO conversion using XT. Xalan also produces errors so may
be FO stylesheet problem.</entry>
</row>
<row>
<entry colname="col2">For tables - support for
format-table-and-caption, keep-together.within-column, and table-layout. This
results in failed layout.</entry>
</row>
<row>
<entry colname="col1">HTML Help stylesheet</entry>
<entry colname="col2">Not supported yet in stylesheet</entry>
<entry colname="col3">OK (must change docbook.xsl for HTML Help so it
refers to xtchunk.xsl, rather than chunk.xsl).</entry>
</row>
<row>
<entry colname="col1">Support for SAX/DOM 1.0</entry>
<entry colname="col2">Yes</entry>
<entry colname="col3">Yes</entry>
</row>
<row>
<entry colname="col1">Support for SAX/DOM 2.0</entry>
<entry colname="col2">Yes</entry>
<entry colname="col3">No</entry>
</row>
<row>
<entry colname="col1">Well-formedness</entry>
<entry colname="col2">Yes</entry>
<entry colname="col3">Yes</entry>
</row>
<row>
<entry colname="col1">Validating</entry>
<entry colname="col2">Yes</entry>
<entry colname="col3">No</entry>
</row>
<row>
<entry colname="col1">XML-Schema</entry>
<entry colname="col2">Yes</entry>
<entry colname="col3">No</entry>
</row>
<row>
<entry colname="col1">Namespaces</entry>
<entry colname="col2">Yes</entry>
<entry colname="col3">No</entry>
</row>
<row>
<entry colname="col1">Open source</entry>
<entry colname="col2">Yes</entry>
<entry colname="col3">Yes</entry>
</row>
<row>
<entry colname="col1">Parses all external entities: external DTD
subsets, external parameter entities and external general entities</entry>
<entry colname="col2">Yes</entry>
<entry colname="col3">Yes </entry>
</row>
<row>
<entry colname="col1">Being actively developed</entry>
<entry colname="col2">Yes</entry>
<entry colname="col3">?</entry>
</row>
</tbody>
</tgroup>
</table></chapter></book>
*******************************************
(The content of the XML file is open to correction, too, if anyone's interested.)
Beth Fischi
Technical Writer
BroadJump, Inc.
512.908.1692
bfischi@broadjump.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC