Alberto Gonz?lez T?llez wrote:
>
> I am trying to change the image directory
> path when generating HTML with docbook.xsl
> I am unable to find where this directory
> is configured to "resources", when I
> use parameter img.src.path set to
> "images" then the images directory
> becomes "imagesresources".
>
The menu items contained in "Convert Document" have not been designed
for experts like you but for average users who are not likely to change
``system parameters'' like "img.src.path" (but they may want to change
parameters such as "profile.condition" or "paper.type" using
"Options|Customize Configuration").
That's why graphics files are automatically copied/converted to a
(automatically created) resources/ subdirectory when generating HTML.
If you want XXE to behave differently, I'm affraid you'll have to
redefine a couple of process commands found in
XXE_install_dir/addon/config/docbook/xslMenu.incl.
Process command docb.convertStep1:
---
<command name="docb.convertStep1">
<process>
<mkdir dir="resources" />
<mkdir dir="raw" />
<copyDocument to="__doc.xml">
<resources match="(https|http|ftp)://.*" />
<!-- Support for textdata/@fileref.
add your favorite text file extensions here: -->
<resources
match=".+\.(txt|text|htm|html|xml|h|c|cpp|java|js|tcl|py|pl|rb)"
copyTo="." />
<resources match=".+\.(png|jpg|jpeg|gif)"
copyTo="resources" />
<resources match="(?:.+/)?(.+)\.(\w+)"
copyTo="raw" referenceAs="resources/$1.png" />
<resources match=".+"
copyTo="resources" />
</copyDocument>
<convertImage from="raw" to="resources" format="png" />
<mkdir dir="images/callouts" />
<copyProcessResources resources="xsl/images/draft.png"
to="images" />
<copyProcessResources
resources="@xsl/images/callouts/png_callouts.list"
to="images/callouts" />
</process>
</command>
---
Notice configuration elements such as:
---
<resources match="(?:.+/)?(.+)\.(\w+)"
copyTo="raw" referenceAs="resources/$1.png" />
---