|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: background-image question
I don't know much about fo, but try putting the literal 'draft.jpg' in
quotes - That's how xsl:attribute would work.
<fo:block>
<xsl:attribute name="background-image">
<xsl:value-of select=" 'draft.jpg' "/>
</xsl:attribute>
Ritu Kama
Sarvega Inc
745, McLintock Dr
Burr Ridge
IL - 60527
----- Original Message -----
From: "Koes, Derrick" <Derrick.Koes@xxxxxxxxxxxxxxxx>
To: <fop-user@xxxxxxxxxxxxxx>
Cc: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, January 28, 2003 3:51 PM
Subject: background-image question
>
> Interestingly enough, putting the background-image attribute as a "real"
> attribute of fo:block in the transform produces the desired result.
> However, adding it with an xsl:attribute element does not produce the
> desired result.
> I think I need to use xsl:attribute because I want to add/set the
attribute
> conditionally.
>
> 1. works:
>
> <fo:block background-image="draft.jpg">
>
>
> 2. does not work:
>
> <fo:block>
> <xsl:attribute name="background-image">
> <xsl:value-of select="draft.jpg"/>
> </xsl:attribute>
>
> Any help is appreciated.
> This electronic transmission is strictly confidential to Smith & Nephew
and
> intended solely for the addressee. It may contain information which is
> covered by legal, professional or other privilege. If you are not the
> intended addressee, or someone authorized by the intended addressee to
> receive transmissions on behalf of the addressee, you must not retain,
> disclose in any form, copy or take any action in reliance on this
> transmission. If you have received this transmission in error, please
> notify the sender as soon as possible and destroy this message.
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








