This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
one html file for every <section> and align images
- To: "'docbook-apps at lists dot oasis-open dot org'" <docbook-apps at lists dot oasis-open dot org>
- Subject: DOCBOOK-APPS: one html file for every <section> and align images
- From: "Kaiser Christian (SV SC RS T33)" <Christian dot 1 dot Kaiser at at dot siemens dot de>
- Date: Fri, 07 Sep 2001 08:52:11 +0200
- List-Id: <docbook-apps.lists.oasis-open.org>
Hi,
I have two questions on converting DocBook documents:
1.) One HTML file (site) for each <section>:
With OpenJade and Dsssl I am able to produce a acceptable HTML output. I get
one HTML file for every single <section>.
But FOP (with docbook.xsl as stylesheet) produces just one HTML file for the
whole document although it's same source file.
What have I done wrong?
2.) align="Center"
OpenJade as also FOP (Xalan) seem to ignore any alignment in my xml file
like .....
<mediaobject>
<imageobject>
<imagedata fileref="welcome.eps"
align="center"></imagedata>
</imageobject>
</mediaobject>
the FO file doesn't contain ....
display-align="center"
or anything similar. So I added it, but .... converted with FOP (I havn't
tried OpenJade jet) the image wasn't aligned to center.
What might be wrong?
By the way, I had to edit "graphics.xsl" to be able to convert XML
containing images into PDF.
<xsl:choose>
<xsl:when test="$passivetex.extensions != 0
or $fop.extensions != 0
or $arbortext.extensions !=0">
<fo:external-graphic src="{$filename}"
width="$width"
height="$height"
content-width="{$content-width}"
content-height="{$content-height}"/>
</xsl:when>
<xsl:otherwise>
<fo:external-graphic src="url({$filename})"
width="$width"
height="$height"
content-width="{$content-width}"
content-height="{$content-height}"/>
</xsl:otherwise>
</xsl:choose>
FOP: Error while recovering Image Information
(file:/C:/path/to/current/dir/url(welcome.jpg)) :
C:\path\to\current\dir\url(welcome.jpg)
(The system cannot find the file specified)
FOP: Error in width property value '$width':
oorg.apache.fop.expr.PropertyException:
illegal character
FOP: Error in width property value '$height':
oorg.apache.fop.expr.PropertyException:
illegal character
In my case, FOP always jumps into the "xsl:otherwise" block. That means, all
values are zero, .. every time.
I simply changed "url({$filename})" to "{$filename}" and added braces to
$width and $height like in content-width.
.... and the image is visible in the result (but not centered :-)
So, .. what is the reason why every value (of these 3 above) is zero in my
case???
any help would be great.
thanks very much,
(-:ris
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>