Thanks Gisbert,
That would be the answer and indeed i had been playing with xml
catalogs and included one in my ant task. Now however, here is my
docbook-- it includes some other docbook files as well as another file
like GridSphereLinks.xml like so:
<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: ReferenceGuide.xml,v 1.9 2004/07/26 13:37:40 novotny Exp $ -->
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR1//EN"
"../common/docbook-xml-4.3CR1/docbookx.dtd" [
<!-- Useful snippets -->
<!ENTITY % GridSphereLinks SYSTEM "../common/GridSphereLinks.xml">
%GridSphereLinks;
<!-- Each chapter is in its own file -->
<!ENTITY portlet-intro SYSTEM "portlet-intro.xml">
<!ENTITY portlet-lifecycle SYSTEM "portlet-lifecycle.xml">
<!ENTITY portlet-group SYSTEM "portlet-group.xml">
<!ENTITY portlet-layout SYSTEM "portlet-layout.xml">
<!ENTITY portlet-services SYSTEM "portlet-services.xml">
<!ENTITY portlet-persistence SYSTEM "portlet-persistence.xml">
<!ENTITY portlet-resources SYSTEM "portlet-resources.xml">
<!-- Application, page, library, component specification entities -->
]>
So I have two questions:
1) How do I get rid of this line
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR1//EN"
"../common/docbook-xml-4.3CR1/docbookx.dtd" [
but still include the imports?
2) This line
<!ENTITY % GridSphereLinks SYSTEM "../common/GridSphereLinks.xml">
also looks problematic that it won't work with Windows, what can I do here?
Thanks very much, Jason
Gisbert Amm wrote:
> Jason Novotny wrote:
>
>>
>> Hi,
>>
>> I'm using Docbook finally with some success after lots and lots of
>> work ;-)
>>
>> My software which is Java based includes the docbook and docbook-xsl
>> tarballs and I want to use the DTD locally so my Ant tasks can create
>> HTML from docbook using the style task without requiring network access.
>>
>> I have the following in my file:
>>
>> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR1//EN"
>> "../common/docbook-xml-4.3CR1/docbookx.dtd" [
>>
>> So I've determined this will work under Unix, but I don't think it
>> works on Windows-- can anyone recommend some approach that will work
>> for both operating systems?
>
>
> You should use XML catalogs instead of hardwire the filesystem path
> into your sources. See
> http://www.sagehill.net/docbookxsl/Catalogs.html on how it works.
>
> Regards,
> Gisbert Amm
>