Page 1 of 1
Next problem with admon.graphics.path
Posted: Wed Jul 22, 2009 5:03 pm
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
Re: Next problem with admon.graphics.path
Posted: Wed Jul 22, 2009 5:34 pm
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
Re: Next problem with admon.graphics.path
Posted: Wed Jul 22, 2009 5:59 pm
by twrichter
Hi,
thanks -having done so - but no effect. Still doesn't find the graphics.
regards
Thomas
Strange problem...
Posted: Wed Jul 22, 2009 6:24 pm
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
still stranger...
Posted: Wed Jul 22, 2009 6:30 pm
by twrichter
FOUND IT!
Posted: Wed Jul 22, 2009 6:34 pm
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
Re: Next problem with admon.graphics.path
Posted: Thu Jul 23, 2009 11:56 am
by sorin_ristache
You are right. The param must have a string value so the value must appear between " and ".
Regards,
Sorin
... and
Posted: Sat Jul 25, 2009 6:18 pm
by twrichter
Hi,
.. I learned you have to deactivate parameter at validation scenarios if you want your own xsl-Parameter to work!
Regards
Thomas

Re: Next problem with admon.graphics.path
Posted: Mon Jul 27, 2009 5:38 pm
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