On Sun, 27 Apr 2003 16:16:59 -0700
David Pratt <> wrote:
> I am chunking xml to xhtml and trying to get my stylesheet and
> image folder all work out with my customization layer.
<skipped/>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
> <!ENTITY book SYSTEM "book.xml">
> <!ENTITY version "1.0">
> <!ENTITY releasedate "May 30, 2003">
> <!ENTITY % chapter01 SYSTEM "entities/chapter01.ent">
> <!ENTITY % chapter02 SYSTEM "entities/chapter02.ent">
> %chapter01;
> %chapter02;
> ]>
> <book><title>My Book Title Here</title>
> &book;
> </book>
<skipped/>
> Any advice much appreciated.
You can use modular schema for developing documents and XML
Inclusions for merging, see
http://www.sagehill.net/xml/docbookxsl/ModularDoc.html
After processing all documents tree in one all included parts
will have "xml:base" attribute. You can use value of this
attribute for calculate relative paths to images and copy images
to output directory.
XSLT-style for it is attached (works with libxml2-2.4.30 and
libxslt-1.0.23). Style support only <graphic/>, but you can easy
add support for other tags.
<skipped/>
--
Regards, Vyt
mailto:
JID: