[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] xml catalogs
Hi Dave, XML Catalog 1.1 (implemented by the Apache resolver) added support for resolving based on a suffix and that should solve the problem as the file will end in the same way. Note also that you need a system mapping (not a uri mapping) to resolve a DTD reference, something like below: <systemSuffix systemIdSuffix="your.dtd" uri="path/to/local/copy.dtd"/> Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Dave Pawson wrote: > http://www.sagehill.net/docbookxsl/WriteCatalog.html#ResolveDtdLoc > > Ah! Bob says: > > Unfortunately, XML catalog entries that try to use relative system > identifiers like systemId="docbook4.5.dtd" do not work with the Java > resolver software currently available. The problem is that when a > document with the example DOCTYPE is processed, the SAX interface in the > XML parser resolves such references relative to the current document's > location before the resolver gets to see it. So the resolver never has a > chance to match on the original string. If you are going to use catalog > files, you should probably stick with the recommended value of > http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd for the SYSTEM > identifier. Or you could use a phony full path, such as > file:///docbookx.dtd, which will prevent the SAX interface from changing > it before the catalog resolver sees it. > > > IF that statement is still true, > that explains why it isn't working. > > Would seem to be so. > > > regards >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]