xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn Adams <gl...@skynav.com>
Subject Re: Variables
Date Sat, 18 Aug 2012 02:40:22 GMT
you need to study XSLT to learn how to translate to XSL-FO; FOP only
performs the XSLT processing as a convenience function for users; it's real
input is XSL-FO

On Thu, Aug 16, 2012 at 11:31 PM, foobar <fknopf@gmail.com> wrote:

>
>
> Hi,
>
> i am quite new to FOP, so i need a little help.
>
> The XML file comes with a dynamically created tag, that holds the path to
> an
> image:
>
> <user>
>     <id>001</id>
>     <name>foo</name>
>     <familyname>bar</familyname>
>     <image>/somepath/foo_bar_001.jpg</image>
> </user>
>
> How can i use the image content in the XSLT ? That the result is:
>
> <fo:external-graphic width="200px" height="40px"
> content-width="scale-to-fit" content-height="scale-to-fit"
> src="/somepath/foo_bar_001.jpg"/>
>
> Do i need to load the <xs:value-of select="image"/> into a variable ?
>
>
> Thank you,
> Regards
> Foobar
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/Variables-tp36660.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

Mime
View raw message