Reece Dunn wrote:I have also made a few changes to the CSS, especially when printing the HTML (select "print preview" in IE6 :D). In doing this, I have also revised the way the Boost header is rendered - what do people think?
Wouldn't work, at first, because of this line:
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
You changed this from chunk.xsl, which means I get an I/O error from xsltproc when I run bjam. Changing it back fixed the problem.
Oops :)! This is because I modified the import:
<xsl:import
- href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+ href="../../../../../docbook/html/chunk.xsl"/>
to get BoostBook to work off-line (messy hack, I know, but it works :)). I then copied back over from html-single.xsl without thinking - oops!
Doug also patched html.xsl to re-enable chapter numbering in CVS, but it probably hasn't be replicated to the pserver yet. Can you send this (and future updates) as a 'cvs diff -u' instead? That way we can merge it with changes that might have come in since. Doug, do you mind me commiting these changes as they come in, or would you rather keep it separate while it's in flux?
No problem. Here is the diff:
RCS file: /cvsroot/boost/boost/tools/boostbook/xsl/html.xsl,v
retrieving revision 1.10
diff -u -r1.10 html.xsl
--- html.xsl 5 Feb 2004 15:16:39 -0000 1.10
+++ html.xsl 5 Feb 2004 21:39:37 -0000
@@ -4,10 +4,12 @@
version="1.0"><!-- Import the HTML chunking stylesheet -->
+ <!--xsl:import
+ href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/-->
<xsl:import
- href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+ href="../../../../../docbook/html/chunk.xsl"/>
- <xsl:param name="html.stylesheet" select="'reference.css'"/> + <xsl:param name="html.stylesheet" select="'boostbook.css'"/> <xsl:param name="navig.graphics" select="1"/> <xsl:param name="navig.graphics.extension" select="'.png'"/> <xsl:param name="chapter.autolabel" select="1"/> @@ -20,39 +22,26 @@ <xsl:param name="generate.section.toc.level" select="3"/>
<xsl:template name="header.navigation">
- <table border="1" cellpadding="2" bgcolor="#007F7F">
+ <table border = "1" cellpadding = "2" width = "100%" class = "boost-head">
<tr>
- <td bgcolor="#FFFFFF">
+ <td bgcolor = "#FFFFFF" width = "50%">
<img src="../../c++boost.gif"
alt="c++boost.gif (8819 bytes)" width="277" height="86"/>
</td>
- <td>
- <a href="../../index.htm">
- <font color="#FFFFFF" size="4" face="Arial">Home</font>
- </a>
- </td>
- <td>
- <a href="libraries.html">
- <font color="#FFFFFF" size="4" face="Arial">Libraries</font>
- </a>
- </td>
- <td>
- <a href="../../people/people.htm">
- <font color="#FFFFFF" size="4" face="Arial">People</font>
- </a>
- </td>
- <td>
- <a href="../../more/faq.htm">
- <font color="#FFFFFF" size="4" face="Arial">FAQ</font>
- </a>
- </td>
- <td>
- <a href="../../more/index.htm">
- <font color="#FFFFFF" size="4" face="Arial">More</font>
- </a>
+ <td align = "center" class = "boost-headtd">
+ <a href="../../index.htm" class = "boost-headelem">Home</a>
+ </td><td align = "center" class = "boost-headtd">
+ <a href="libraries.html" class = "boost-headelem">Libraries</a>
+ </td><td align = "center" class = "boost-headtd">
+ <a href="../../people/people.htm" class = "boost-headelem">People</a>
+ </td><td align = "center" class = "boost-headtd">
+ <a href="../../more/faq.htm" class = "boost-headelem">FAQ</a>
+ </td><td align = "center" class = "boost-headtd">
+ <a href="../../more/index.htm" class = "boost-headelem">More</a>
</td>
</tr>
</table>
+ <hr/>
</xsl:template>
<xsl:template name="format.cvs.revision">
@@ -192,4 +181,11 @@
<!-- We don't want refentry's to show up in the TOC because they
will merely be redundant with the synopsis. -->
<xsl:template match="refentry" mode="toc"/>
- </xsl:stylesheet>
+
+ <!-- override the behaviour of some DocBook elements for better
+ rendering facilities -->
+
+ <xsl:template match = "programlisting[ancestor::informaltable]">
+ <pre class = "table-{name(.)}"><xsl:apply-templates/></pre>
+ </xsl:template>
+</xsl:stylesheet>Do you want me to do the same for boostbook.css? (should I change the name? should we keep reference.css?)
Also, disregard:
<!-- Import the HTML chunking stylesheet -->
+ <!--xsl:import
+ href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/-->
<xsl:import
- href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+ href="../../../../../docbook/html/chunk.xsl"/>
(see above for the reason why).
Regards, Reece
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Boost-docs mailing list [EMAIL PROTECTED] Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs
