← Prev in month ← Prev in thread

Setting dynamic block attributes.

From
Jacob Bager <>
To
Date
2003-04-30T09:23:05Z
ID
<003201c30efa$1b04d420$82d30980@jb>
Thread
Setting dynamic block attributes.
hey there..

Im working with the xsl:fo on the cocoon, and i have run into some trouble.

i can't figure out, how to set block-attributes dynamicaly.

Here's what i tried. :

  the xml-data file has a tag like this.

    <sFont color="RED" size="16px">
        Some text ...    
    </sFont>

the xsl template looks like this.
    <xsl:template match="sFont">
       <xsl:if test="@color">         
            <xsl:variable name="color" select="@color" />
       </xsl:if>
     <fo:block color="$color">
        <xsl:apply-templates/>
     </fo:block>
    </xsl:template>

the text color is doesn't change to RED , but stays Black .

why can't i get this to work?

Please Help!


------------------------------------------------------------
Jacob Bager

Developer 
http://www.An-Concepts.dk
← Prev in month ← Prev in thread