This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] three slashes don't work in catalog - bug? I have a work around.


Hi all,

I'm using a catalog file to resolve file:///C:/bogus/docbookx.dtd to
file:///C:/DocBook/docbookx.dtd. I'm finding that I have to remove two of
the slahes in order for my catalog to resolve... (see catalog.xml and
default.xml below) Has any one come across this? Is this a bug?

Accordign to www.sagehill.net/docbookxsl/WriteCatalog.html I assumed that
the systemID should work with 3 slashes (the web page only says the the
xml:base or uri attributes should have 3 slashes). Right now I either edit
the xml file just to make my catalog file to work. Which kinda defeats the
purpose.

<sidenote>In addition, I'm finding that URI and xml:base work fine with 1, 2
or 3 slashes.</sidenote>

So I found a work around: I basically use a systemRewrite to change the
three slashes to one slash, and then my system tag will resolve.

LN
<systeminfo>
docbookDTD v4.1.2 (unmodified), stylesheets 1.68.1, saxon 653
I'm using v4.1.2 for framemaker structured files.
</systeminfo>

=======================================
DEFAULT.XML FILE: (located in file://C:/XML/SDK/)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book SYSTEM "file:///C:/bogus/docbookx.dtd" [

=======================================
CATALOG FILE:

<?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">  
<!-- work around for three slashes in DOCTYPE -->
<rewriteSystem
       systemIdStartString="file:///C:/bogus"
       rewritePrefix="file:/C:/bogus" />
		
<group  prefer="system" xml:base="file:///C:/">
    <system
       systemId="file:/C:/bogus/docbookx.dtd"    
       uri="DocBook/docbookx.dtd"/>
</group>

</catalog>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]