Next problem with admon.graphics.path

Here should go questions about transforming XML with XSLT and FOP.
twrichter
Posts: 13
Joined: Sun Jul 19, 2009 8:13 pm

Next problem with admon.graphics.path

Post by twrichter »

Hi,
having read DocBook XSL I thought I have learned to use XSL.

But there are some strange problem left:
I put in my custom xsl file these lines:

<xsl:template match="*" mode="admon.graphic.width">
<xsl:text>32pt</xsl:text>
</xsl:template>
<xsl:param name="admon.graphics.path">/opt/docbook5/</xsl:param>

to indicate that I am using another location for my graphics (/opt/docbook5/images/). But oxygen totally ignores this code? What is wrong?

Thanks in advance

Thomas
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Next problem with admon.graphics.path

Post by sorin_ristache »

Hello,

If the images are in /opt/docbook5/images/ you have to use:

Code: Select all

<xsl:param name="admon.graphics.path">/opt/docbook5/images/</xsl:param>

Regards,
Sorin
twrichter
Posts: 13
Joined: Sun Jul 19, 2009 8:13 pm

Re: Next problem with admon.graphics.path

Post by twrichter »

Hi,

thanks -having done so - but no effect. Still doesn't find the graphics.

regards
Thomas
twrichter
Posts: 13
Joined: Sun Jul 19, 2009 8:13 pm

Strange problem...

Post by twrichter »

Hi,

even stranger... In the FO-File there is

src="url(/opt/docbook5/images/note.png)"

And everything should be ok because note.png is tere. BUT: nothing happens... When moving the images-directory to the directory where the resulting files are stored (DBXML/images) then the icon is there!

??????????????

Regards
Thomas

sorin wrote:Hello,

If the images are in /opt/docbook5/images/ you have to use:

Code: Select all

<xsl:param name="admon.graphics.path">/opt/docbook5/images/</xsl:param>

Regards,
Sorin
twrichter
Posts: 13
Joined: Sun Jul 19, 2009 8:13 pm

still stranger...

Post by twrichter »

[Hi,

when giving the path as parameter in the dialog window of configuring a transformation scenario it works.
But when inserting it in the custom xml file - it doesn't work!

??????????? :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?:

regards
Thomas
twrichter
Posts: 13
Joined: Sun Jul 19, 2009 8:13 pm

FOUND IT!

Post by twrichter »

Hi,

I have to insert ''!

Instead of

Code: Select all

<xsl:param name="admon.graphics.path">/opt/docbook5/images/</xsl:param>
this one:

Code: Select all

<xsl:param name="admon.graphics.path">'/opt/docbook5/images/'</xsl:param>
It's a hard time learning XML... :)

Regards
Thomas
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Next problem with admon.graphics.path

Post by sorin_ristache »

You are right. The param must have a string value so the value must appear between " and ".


Regards,
Sorin
twrichter
Posts: 13
Joined: Sun Jul 19, 2009 8:13 pm

... and

Post by twrichter »

Hi,

.. I learned you have to deactivate parameter at validation scenarios if you want your own xsl-Parameter to work!

Regards
Thomas :shock:
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Next problem with admon.graphics.path

Post by sorin_ristache »

Hello,

For the XSLT transformation Oxygen uses only the settings of the transformation scenario associated with the current file. A validation scenario is not used for the XSLT transformation. What parameter of validation scenario did you deactivate?


Regards,
Sorin
Post Reply