You define variable in xsl namespace. SVG doesn't know your variable. Try this:
<xsl:variable name="color" select="limegreen"/> <svg:svg height="400" width="400"> <svg:rect height="50"width="100"> <xsl:attribute name="style"> <xsl:text>fill:</xsl:text><xsl:value-of select="$color"/> </xsl:attribute> </svg:rect> George --- Don Berendsen <[EMAIL PROTECTED]> wrote: > FOP 2.0.5rc > > In the example below the rectangle is filled with > black instead of > limegreen. Is there a way to specify the fill color > using a variable? > > Thanks, > > Don > > > <xsl:variable name="color" select="limegreen"/> > <svg:svg height="400" width="400"> > <svg:rect style="fill:{$color}" height="50" > width="100" /> > > > _________________________________________________________________ > MSN 8 with e-mail virus protection service: 2 months > FREE* > http://join.msn.com/?page=features/virus > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]