Making HTML XHTML compliant



Hi all,

I need to do some post-processing on the generated HTML docs and
I'd like to use an XSL stylesheet. To be able do generate XHTML
compliant code, I modified gtk-doc.xsl as shown by the
attachement. I used it on a couple of projects and seems to work
properly.

Is there some reason / drawback / pitfall I must be aware of? Or
gtk-doc is still using HTML4 only for historical reasons?

If the latter case applies, maybe an update should be considered.

Ciao
-- 
Nicola
--- gtk-doc.xsl.old	2009-04-01 14:22:53.000000000 +0200
+++ gtk-doc.xsl	2009-04-01 14:23:03.000000000 +0200
@@ -3,7 +3,7 @@
                 version="1.0">
 
   <!-- import the chunked XSL stylesheet -->
-  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
   <xsl:include href="devhelp.xsl"/>
   <xsl:include href="devhelp2.xsl"/>
   <xsl:include href="version-greater-or-equal.xsl"/>
@@ -19,7 +19,6 @@
 
   <xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
   <xsl:param name="chunker.output.indent" select="'yes'"/>
-  <xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD HTML 4.01 Transitional//EN'"/>
   <xsl:param name="chunk.fast" select="1"/>
 
   <xsl:param name="default.encoding" select="'UTF-8'"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]