[xep-support] Calling an action from XSL

Anthony Kartasasmita akartasasmita at connxion.com.au
Tue Jul 11 16:04:32 PDT 2006


Hi Sebastien,
 
You need to put that recto attribute inside a variable first. Like this:
 
<xsl:variable name="logo">
   <xsl:value-of select=" image[@id='colour'] "/>
</xsl:variable>
 
<fo:external-graphic src="url({$logo})" content-height="{$height}"
content-width="{$width}"/>
 
hope help. Let us know.
 
regards
 
-----Original Message-----
From: Sébastien CLERMONT [mailto:sclermont at hotmail.com] 
Sent: Wednesday, July 12, 2006 6:17 AM
To: xep-support at renderx.com
Subject: [xep-support] Calling an action from XSL
 
Hi everyone.  Got support twice on this list.  Now I have a third issue to
resolve!

I am not sure what is possible with XSL, so I will ask my question here.  Is
that possible to call an action from a XSL?  I know that you can call a java
class.  I already do it and it works fine.  Why do I want to call an action?
Because this action is already used by our application to display images
that are stored in a DB2 database.  This action is called from jsp pages and
from other places.  I know need to call that same action from my XSL.

I tried to put it in a <fo:external-graphic .../> object with the src
attribute pointing to my action.  It did not work.

In the XML file I have this object with two attributes which are URLs to my
action:
<cheque type="CHQ"
              dateretrait="20050312"
              dateretour=""
              datecomptable="a"
              montant="1500.00"
              nocheque="11221"
              noref="01">
<recto><![CDATA[http://localhost:7001/module/GetImage.do?dateComptable=20060
626&noReference=0002000020&cote=recto]]></recto>
<verso><![CDATA[http://localhost:7001/module/GetImage.do?dateComptable=20060
626&noReference=0002000020&cote=verso]]></verso>
</cheque>

In my XSL, tried to put a external-graphic tag like this:
<fo:external-graphic src="url('{@recto}')" scaling="non-uniform"
content-width="9.17cm" content-height="4.13cm" border-end-width="6.5mm"/>

I thought that the url() function would do the trick.  But no image is
displaying in the resulting PDF file.  Is there any other function I could
put in my XSL to correctly call the action and insert the image in the PDF?

Thank you.

Sebastien Clermont
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20060712/a44dbef9/attachment.html>


More information about the Xep-support mailing list