You may remember a while back, I was having problems getting bjam/BoostBook to work with xsltproc's catalog.xml. The workaround that I had in place was to hack the urls manually to point to the right locations, but this was only a stop-gap solution until I could figure out what was going on and lead to update problems when I changed the urls back (errors on my part).
I have the following in my user-config.jam file:
using boostbook : d:/devel/libraries/docbook/xsl/
: d:/devel/libraries/docbook/dtd/
;and that is generating:
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteURI uriStartString="http://www.boost.org/tools/boostbook/dtd/" rewritePrefix="file:///D:/devel/libraries/Boost/1.31.0/tools/boostbook/dtd//"/>
<rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current/" rewritePrefix="file:///d:/devel/libraries/docbook/xsl/"/>
<rewriteURI uriStartString="http://www.oasis-open.org/docbook/xml/4.2/" rewritePrefix="file:///d:/devel/libraries/docbook/dtd/"/>
</catalog>
as the catalog file. For my system (WinXP SP1 + cygwin), this does not work. What does work is the following:
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteURI uriStartString="http://www.boost.org/tools/boostbook/dtd/" rewritePrefix="d:/devel/libraries/Boost/1.31.0/tools/boostbook/dtd//"/>
<rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current/" rewritePrefix="d:/devel/libraries/docbook/xsl/"/>
<rewriteURI uriStartString="http://www.oasis-open.org/docbook/xml/4.2/" rewritePrefix="d:/devel/libraries/docbook/dtd/"/>
</catalog>
i.e. there is no "file:///" prefix to the urlStartString attributes. I do not understand why this should work and the other does not. My only thoughts are that it could be due to the fact that I have an internal IIS server (web and ftp) that may be causing the troubles.
I will modify the boostbook.jam to generate the correct catalog.xml for my setup until there is a way to specify the url prefix, e.g.
using boostbook : : <url-prefix>file:// # default ;
using boostbook : : <url-prefix># for my configuration ;
I am open to suggestions if anyone has any better ideas.
NOTE: How do you get the
local boostbook-dtd-dir = [ boostbook.dtd-dir ] ;
to remove the '/' it puts at the beginning of the pathname? The workaround I am using is to replace d: with /cygdrive/d which works, but I am not sure on how to change the boostbook-dtd-dir to use /cygdrive/d.
NOTE: I am also getting the following error:
xslt-xsltproc bin\gcc\debug\outfmt.docbook
warning: failed to load external entity "reference.xsl"
compilation error: file D%3A%5Cdevel%5Clibraries%5CBoost%5C1.31.0%5Ctools%5Cboostbook%5Cxsl%5Cdocbook.xsl line 4 element include
xsl:include : unable to load reference.xsl
which I am currently solving by explicitly referencing the file:
<xsl:include href="D:/devel/libraries/Boost/1.31.0/tools/boostbook/xsl/reference.xsl"/>
Does anyone know what is going on? Is this related to the reason why the "file:///" prefix doesn't work?
Regards, Reece
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Boost-docs mailing list [EMAIL PROTECTED] Unsubscribe and other administrative requests: https://lists.sourceforge.net/lists/listinfo/boost-docs
