Rene Rivera wrote:
Paul A Bristow wrote:
And perhaps it could include the code for the W3C validated logo as well?
I assume it should pass ;-)

I doubt it would pass, as it doesn't generate XHTML. It generates HTML4.

The validator can validate HTML, and some experts are recommending using HTML nowadays (such as http://webkit.org/blog/?p=68). I've attached a patch which makes it more likely that the generated files will validate.
? tools/boostbook/xsl/.html.xsl.swp
Index: tools/boostbook/xsl/html.xsl
===================================================================
RCS file: /cvsroot/boost/boost/tools/boostbook/xsl/html.xsl,v
retrieving revision 1.25
diff -u -r1.25 html.xsl
--- tools/boostbook/xsl/html.xsl	4 Apr 2006 22:57:29 -0000	1.25
+++ tools/boostbook/xsl/html.xsl	23 Sep 2006 21:02:56 -0000
@@ -29,6 +29,8 @@
   <xsl:param name="doc.standalone">false</xsl:param>
   <xsl:param name="chunker.output.indent">yes</xsl:param>
   <xsl:param name="toc.max.depth">2</xsl:param>
+  <xsl:param name="chunker.output.doctype-public">-//W3C//DTD HTML 4.01 Transitional//EN</xsl:param>
+  <xsl:param name="chunker.output.doctype-system">http://www.w3.org/TR/html4/loose.dtd</xsl:param>
   
 <xsl:param name="admon.style">
     <!-- Remove the style. Let the CSS do the styling -->
@@ -141,14 +143,14 @@
                 select="normalize-space($revision-node/attribute::rev:last-revision)"/>
             </xsl:variable>
             <xsl:if test="string-length($revision-text) &gt; 0">
-              <small>
-                <p>
+              <p>
+                <small>
                   <xsl:text>Last revised: </xsl:text>
                   <xsl:call-template name="format.cvs.revision">
                     <xsl:with-param name="text" select="$revision-text"/>
                   </xsl:call-template>
-                </p>
-              </small>
+                </small>
+              </p>
             </xsl:if>
           </xsl:if>
         </td>
Index: tools/boostbook/xsl/navbar.xsl
===================================================================
RCS file: /cvsroot/boost/boost/tools/boostbook/xsl/navbar.xsl,v
retrieving revision 1.5
diff -u -r1.5 navbar.xsl
--- tools/boostbook/xsl/navbar.xsl	24 Jan 2006 00:14:23 -0000	1.5
+++ tools/boostbook/xsl/navbar.xsl	23 Sep 2006 21:02:56 -0000
@@ -47,7 +47,7 @@
       <xsl:variable name = "home" select = "/*[1]"/>
       <xsl:variable name = "up"   select = "parent::*"/>
 
-      <table cellpadding = "2" width = "100%">
+      <table cellpadding = "2" width = "100%"><tr>
          <xsl:if test = "$nav.border = 'Boost'">
             <xsl:attribute name = "class">boost-head</xsl:attribute>
          </xsl:if>
@@ -70,7 +70,7 @@
                <xsl:call-template name = "header.navdata-vert"/>
             </xsl:when>
          </xsl:choose>
-      </table>
+      </tr></table>
       <hr/>
       <xsl:choose>
          <xsl:when test = "$nav.flow = 'DocBook'">
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to