[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Docbook images/graphics. Where do you keep them?
Dave,
I have a pretty simple system that assumes a directory structure like
this:
xml files
xml files\images
1. When I publish FO the PDF lands in "xml files".
2. When I publish HTML:
- I set the "output" directory to "xml files\html"
- I copy the images from "xml files\images" to "xml files\html\images" by a
batch file generated by XSLT <see below>
- I copy the Docbook images from where they are to "xml
files\html\images\docbook_images" and point the admon.graphics.path to
"images\docbook_images". As a result the "html" dir tree is portable and can go
anywhere since the paths for the images are relative.
3. I have found out that MSHELP only embeds images that it needs and
not the whole directory.
Dean
In a message dated 5/14/2009 8:42:33 A.M. Pacific Daylight Time,
davep@dpawson.co.uk writes:
DeanNelson wrote: I use a template file for collecting the images that are used in the book.
It generates a batch file with the files named for copying. Then I run the batch
as the final part of the processing. Since I maintain both Windows and Linux, a
similar one is used for Linux.
I also copy the navigation images and the Docbook images in the batch file
that calls this one.
---------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text" indent="yes"
doctype-public="-//OASIS//DTD DocBook XML
V4.5//EN"
doctype-system="http://www.docbook.org/xml/4.5/docbookx.dtd"/> <xsl:strip-space elements="*"/> <!-- Clear all other text templates
-->
<xsl:template match="text()"/> <xsl:template
match="*">
<xsl:apply-templates/> </xsl:template> <!-- find all parent sections and dig out images
-->
<xsl:template match="imagedata|graphic"> <xsl:text>copy "images\</xsl:text> <xsl:value-of select="@fileref"/> <xsl:text>" html\images\"</xsl:text> <xsl:value-of select="@fileref"/><xsl:text>" </xsl:text> </xsl:template> </xsl:stylesheet>
-------------------------
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]