On Sat, 14 Mar 2009 13:32:29 +0100 (CET)
reimar <[email protected]> wrote:

> Author: reimar
> Date: Sat Mar 14 13:32:28 2009
> New Revision: 28944
> 
> Log:
> Set DOCTYPE in xsl-generated HTML documentation.
> 
> Modified:
>    trunk/DOCS/xml/html-common.xsl
> 
> Modified: trunk/DOCS/xml/html-common.xsl
> ==============================================================================
> --- trunk/DOCS/xml/html-common.xsl    Sat Mar 14 09:11:03
> 2009  (r28943) +++ trunk/DOCS/xml/html-common.xsl     Sat
> Mar 14 13:32:28 2009  (r28944) @@ -2,7 +2,9 @@
>  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>                  version="1.0">
>  
> -<xsl:output method="html" indent="no"/>
> +<xsl:output method="html" indent="no"
> +            doctype-system="http://www.w3.org/TR/html4/loose.dtd";
> +            doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
>   
>  <!-- **************
>       Set parameters

This breaks xsltproc, because it requires an output file when DOCTYPE
is specified, and crashes with an "is a directory" error otherwise.

See eg. http://www.mail-archive.com/[email protected]/msg01014.html

(a bit hackish) fix attached.

-- 
Jindrich Makovicka
Index: configure
===================================================================
--- configure	(revision 28978)
+++ configure	(working copy)
@@ -188,9 +188,9 @@
     echo "Found xsltproc. If it works, it's probably the best choice."
     if test -n "$_catalog"
     then
-      _xsltcommand="xsltproc --catalogs -o \$1 \$2 \$3"
+      _xsltcommand="xsltproc --catalogs -o \$1/dummy.html \$2 \$3; rm \$1/dummy.html"
     else
-      _xsltcommand="xsltproc -o \$1 \$2 \$3"
+      _xsltcommand="xsltproc -o \$1/dummy.html \$2 \$3; rm \$1/dummy.html"
     fi
   else
     echo "Found xsltproc but no stylesheets on your system."
_______________________________________________
MPlayer-DOCS mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-docs

Reply via email to