[xml/sgml-pkgs] Bug#283173: w3-dtd-mathml: .ent files not taken into account in the catalog system

Vincent Lefevre vincent at vinc17.net
Thu May 17 21:35:50 UTC 2012


/etc/xml/w3-dtd-mathml.xml contains:

<delegatePublic publicIdStartString="-//W3C//DTD MathML" catalog="file:///usr/share/xml/schema/w3c/mathml/dtd/catalog.xml"/>
<delegatePublic publicIdStartString="-//W3C//DTD XHTML 1.1 plus MathML" catalog="file:///usr/share/xml/schema/w3c/mathml/dtd/catalog.xml"/>
<delegateSystem systemIdStartString="http://www.w3.org/TR/MathML2/dtd/" catalog="file:///usr/share/xml/schema/w3c/mathml/dtd/catalog.xml"/>

For the entities such as http://www.w3.org/TR/MathML2/dtd/isonum.ent
(whose system id starts with http://www.w3.org/TR/MathML2/dtd/),
that's the 3rd line that is important.

Then /usr/share/xml/schema/w3c/mathml/dtd/catalog.xml contains:

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">

  <public publicId="-//W3C//DTD MathML 2.0//EN" uri="mathml2.dtd"/>

  <public publicId="-//W3C//DTD MathML//EN" uri="mathml2.dtd"/>

  <public publicId="-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
    uri="xhtml-math11-f.dtd"/>

  <system systemId="http://www.w3.org/TR/MathML2/dtd/mathml2.dtd"
    uri="mathml2.dtd"/>

  <system systemId="http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
    uri="xhtml-math11-f.dtd"/>

</catalog>

i.e. nothing that will handle an entity.

On 2004-11-27 01:27:09 +0100, Vincent Lefevre wrote:
> As a workaround, I can have my own catalog file with:
> 
>   <rewriteSystem systemIdStartString="http://www.w3.org/TR/MathML2/dtd/"
>                  rewritePrefix="/usr/share/xml/schema/w3c/mathml/dtd/"/>

How about adding

  <rewriteSystem systemIdStartString="http://www.w3.org/TR/MathML2/dtd/"
                 rewritePrefix="./"/>

to /usr/share/xml/schema/w3c/mathml/dtd/catalog.xml or having
the quoted rewriteSystem in /etc/xml/w3-dtd-mathml.xml?

Concerning the latter solution, it seems that update-xmlcatalog
(in the postinst script) cannot be used since it doesn't support
rewriteSystem (if its man page is complete).

So, the former solution would be preferable. I haven't tried it, but
this is what docbook2x chooses. /usr/share/docbook2X/dtd/catalog.xml
contains:

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

  <public publicId="-//Steve Cheng//DTD Man-XML V0.8.6//EN"
          uri="Man-XML" />

  <public publicId="-//Steve Cheng//DTD Texi-XML V0.8.6//EN"
          uri="Texi-XML" />

  <rewriteSystem 
    systemIdStartString="http://docbook2x.sourceforge.net/latest/dtd/"
    rewritePrefix="./" />
                 
  <rewriteSystem 
    systemIdStartString="http://docbook2x.sf.net/latest/dtd/"
    rewritePrefix="./" />

</catalog>

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)





More information about the debian-xml-sgml-pkgs mailing list