OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] db5: Admon graphics in fo output


Bruno,

When using the FO stylesheets, the admon.graphics.path is relative to
the location of your XML source files. That is, the XSLT processor wants
to know where the files are at build time, so that it can embed them in
the .fo file it is generating. 

By contrast, when using the HTML or XHTML styelsheets, the
admon.graphics.path is relative to where your HTML files are generated
(that is, to the directory named in the --output parameter of xsltproc).
In this case, the XSLT processor wants to know the path to the files at
run time, from where the HTML files will load them on demand from a
browser. The XSLT processor embeds this runtime path in the HTML files.

Your "generated.graphics.path" two-step solution is not really
necessary. You should be able to use:

   <xsl:param name="admon.graphics.path" select="'../admon/'" />

I hope this helps.

-----Original Message-----
From: Bruno GUEGAN [mailto:bruno_guegan@yahoo.fr] 
Sent: Friday, November 17, 2006 4:50 AM
To: DocBook Apps Mailing List
Subject: [docbook-apps] db5: Admon graphics in fo output

Hello,

If i use : 
docbook-xsl-1.71.1
or
docbook5ns-xsl-1.71.0

Admon graphics in fo output FAILED !

My config :
----------------
XML_CATALOG_FILES="/etc/xml/catalog ../libs/docbook-5.0b9/catalog.xml
../libs/docbook5ns-xsl-1.71.0/catalog.xml"
I use : fop (SVN Trunk)

xsltproc -V
Using libxml 20626-CVS2819, libxslt 10117-CVS1065 and libexslt
813-CVS1065 xsltproc was compiled against libxml 20626, libxslt 10117
and libexslt 813 libxslt 10117 was compiled against libxml 20626
libexslt 813 was compiled against libxml 20626
----------------

My stylesheets :
----------------
<xsl:param name="paper.type" select="'A4'"/> <xsl:param
name="page.orientation" select="'portrait'"/> <xsl:param
name="double.sided" select="'1'"/> <xsl:param
name="l10n.gentext.default.language" select="'fr'"/> <xsl:param
name="draft.mode" select="no"/> <xsl:param name="admon.graphics"
select="'1'"/> <xsl:param
name="admon.graphics.extension">png</xsl:param>

<xsl:param name="generated.graphics.path">../admon/</xsl:param>
<xsl:param name="admon.graphics.path"
select="$generated.graphics.path"/>

<xsl:template match="*" mode="admon.graphic.width">
  <xsl:text>24pt</xsl:text>
</xsl:template>
---------------

Have you a idea ? In fo output, i dont see directory with images ... 

Best regards,
Bruno

--
L'homme n'est heureux que de vouloir et d'inventer.
Alain

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]