2009/11/13 Thomas Treutner <tho...@scripty.at>:
> On Thursday 12 November 2009 16:01:39 Matthias Bolte wrote:
>> I came across this problem some time ago, too. I'm using Ubuntu, so
>> it's basically Debian.
>>
>> I somewhat solved it by hacking my /etc/xml/catalog. I added this into
>> the <catalog> element:
>>
>> <rewriteSystem
>>   systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/";
>>   rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
>>
>> <rewriteURI
>>   uriStartString="http://www.w3.org/TR/xhtml1/DTD/";
>>   rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
>>
>> Matthias
>
> Thanks for the tip, but it still fails.
>
> http://pastebin.com/m3bf17c73
> http://pastebin.com/m90f9ba6
>
> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
>        <rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/";
> rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
>        <rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/";
> rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
>        <delegatePublic publicIdStartString="ISO 8879:1986//ENTITIES"
> catalog="file:///etc/xml/sgml-data.xml"/>
> ........
> </catalog>
>
>
> # ls -l /usr/share/xml/xhtml/schema/dtd/1.0/
> total 104
> -rw-r--r-- 1 root root   898 2004-08-11 06:17 catalog
> -rw-r--r-- 1 root root  1385 2004-08-11 06:17 catalog.xml
> lrwxrwxrwx 1 root root    31 2009-11-12 12:50
> xhtml1.dcl -> ../../../../declaration/xml.dcl
> -rw-r--r-- 1 root root 32950 2002-08-01 20:23 xhtml1-frameset.dtd
> -rw-r--r-- 1 root root 25473 2002-08-01 20:23 xhtml1-strict.dtd
> -rw-r--r-- 1 root root 32112 2002-08-01 20:23 xhtml1-transitional.dtd
>
>
> Any suggestions?
>
>
> kr,tom
>

Strange.

Does it help if you revert the changes to /etc/xml/catalog and apply
the attached patch?

Matthias
diff --git a/docs/Makefile.am b/docs/Makefile.am
index d819869..d53f305 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -106,7 +106,7 @@ ChangeLog.html.in: ChangeLog.xml ChangeLog.xsl
 
 %.html: %.html.tmp
 	@(if [ -x $(XMLLINT) -a -x $(XMLCATALOG) ] ; then \
-	  if $(XMLCATALOG) /etc/xml/catalog "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; > /dev/null ; then \
+	  if $(XMLCATALOG) /etc/xml/catalog "-//W3C//DTD XHTML 1.0 Strict//EN" > /dev/null ; then \
 	  echo "Validating $@" ; \
 	  $(XMLLINT) --nonet --format --valid $< > $@ || : ; \
 	  else echo "missing XHTML1 DTD" ; fi ; fi );
@@ -117,7 +117,7 @@ html/index.html: libvirt-api.xml newapi.xsl page.xsl sitemap.html.in
 	  echo "Rebuilding the HTML pages from the XML API" ; \
 	  $(XSLTPROC) --nonet $(srcdir)/newapi.xsl libvirt-api.xml ; fi )
 	-@(if [ -x $(XMLLINT) -a -x $(XMLCATALOG) ] ; then \
-	  if $(XMLCATALOG) /etc/xml/catalog "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; > /dev/null ; then \
+	  if $(XMLCATALOG) /etc/xml/catalog "-//W3C//DTD XHTML 1.0 Strict//EN" > /dev/null ; then \
 	  echo "Validating the resulting XHTML pages" ; \
 	  $(XMLLINT) --nonet --valid --noout html/*.html ; \
 	  else echo "missing XHTML1 DTD" ; fi ; fi );
diff --git a/docs/site.xsl b/docs/site.xsl
index b2983bd..a673f6b 100644
--- a/docs/site.xsl
+++ b/docs/site.xsl
@@ -11,8 +11,8 @@
     method="xml"
     encoding="ISO-8859-1"
     indent="yes"
-    doctype-public="-//W3C//DTD XHTML 1.0//EN"
-    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
+    doctype-system="-//W3C//DTD XHTML 1.0 Strict//EN"/>
 
   <xsl:variable name="href_base" select="''"/>
 
--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to