Hi,
I wish to use fop-0.20.5rc3 to process an XML doc using an XSL
stylesheet that contains both XSLT and FO directives. I extract an
itemNumber from the XML, save it in an XSL variable, use it to
dynamically build a url to an external servlet that will return a jpeg
barcode for that item number. I store the calculated url in an XSL
variable. Finally I wish to use the FO external-graphic to place the
servlet generated image into the output pdf document, but I can't figure
out any way to put the calculated url into the src attribute. It seems
to only accept a string literal.
Is there any way to do what I want (use a calculated url to insert an
image generated by an external servlet)?
<xsl:variable name="itemNumber"
select="ReportData/Record/structItemRecord/core/structItem/strItemNumber"/>
<xsl:variable name="calcUrl"
select="concat('http://www.javabarcoding.com/servlet/lin?BARCODE=',
$itemNumber,
'&BAR_HEIGHT=1&CODE_TYPE=CODE39&X=0.03&CHECK_CHAR=N&CHECK_CHARINTEXT=N&CODE128_SET=0&HEIGHT=100&WIDTH=400')"/>
<fo:block text-align="left"><fo:external-graphic
src="url(????????)"/></fo:block>
By the way, the url function that is shown in some fop examples used
inside the src attribute as above must be a fop specific function or so
it seems to me. Where can I find documentation on such fop functions?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]