[xml] Re: passing the FPI to the DTD validator



Daniel Veillard <veillard redhat com> writes:

  It really seems to boil down to a misunderstanding in the way XML Catalog
resolution works.

But delegateSystem in nextCatalog always seems to win and then it wants
to see a system mapping in the subcatalog is possible via:

<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" 
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <group id="xhtml-dtd-2002.4.30-119">
    <delegatePublic publicIdStartString="-//W3C//DTD XHTML" catalog="file:///etc/xml/testxhtml.xml"/>
    <!-- delegateSystem systemIdStartString="http://www.w3.org/TR/xhtml"; 
catalog="file:///etc/xml/testxhtml.xml"/-->
  </group>
</catalog>

<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" 
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <public publicId="-//W3C//DTD XHTML 1.0 Strict//EN"
          uri="file:///usr/share/sgml/xhtml/xhtml-1.0/DTD/xhtml1-strict.dtd"/>
</catalog>

But if I enable delegateSystem it wants to see "system" in the
subcatalog.  Two questions

. Why not trying delegatePublic first?

. If you reach a subcatalog via delegateSystem why don't try to eval
  "public" in the subcatalog?



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