Hi,
thanks for your replies. But I could solve the problem: I used an
XIncluder Ant-Task which didn't set the "xml:base" attributes correctly.
When using XIncludes in files which were already XIncluded it set the
"xml:base" attribute - even though those files were in the same
directory. Now I am using xmlint and now everything is working fine.
Is there an example how to use the XSLT-Ant task in such a way that it
is resolving the XIncludes?
Thanks for your replies.
Tino
Tino Schöllhorn schrieb:
Hi,
we are setting up docbook for documenting our project. So far
everythings goes well. There is just on issue with which I am
struggling: When using images in document parts which are included by
"XInclude" the XSLT-Stylesheet seems to apply the xml:base twice!
The project is layouted like this:
main.xml
|--------first-steps
| |-------pictures
| |-------first-steps.xml
(and so on)
The picture should be stored in first-steps/pictures. When writing the
document "first-steps.xml" we use the following docbook part to include
an image:
<graphic fileref="pictures/login.jpg"/>
Which works nicely - as long we don't XInclude the first-steps.xml in
the main.xml
As I understand one should set the XSLT-Option
"keep.relative.image.uris" to "1" so that the xml:base values are
applied. When doing so, we get HTML output which is like:
<img src=first-steps/first-steps/pictures/login.jpg>
When transforming to PDF output an error occurs that the picture
"first-steps/first-steps/pictures/login.jpg" cannot be found.
Obviously the xml:base attribute has been applied twice.
So, what am I missing here? Is there a general error?
I am using docbook-xsl-1.73.2 and Ant 1.7 to generate the documents.
Does someone has an idea what is missing?
In hope for an hint
Tino
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]