This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] using local catalog in platform independent way
- From: Jason Novotny <novotny at aei dot mpg dot de>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 26 Jul 2004 16:43:54 +0200
- Subject: Re: [docbook-apps] using local catalog in platform independent way
- References: <41050D2D.7040105@aei.mpg.de> <41050EFF.8090204@webde-ag.de>
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