RE: [xsl] vars for attributes

Subject: RE: [xsl] vars for attributes
From: "bryan" <bry@xxxxxxxxxx>
Date: Thu, 25 Jul 2002 17:12:07 +0200

-----Original Message-----


><xsl:variable name="border" select="0pt"/>

><xsl:variable name="bordercolor" select="#CCCCCC"/>

>but the following does not work, why?
><fo:table-cell number-rows-spanned="2" font-size="10pt"
text-align="start"
>color="black" padding="2pt" border="$border solid $bordercolor">

do this:
<fo:table-cell number-rows-spanned="2" font-size="10pt"
text-align="start"
color="black" padding="2pt" border="{$border} solid {$bordercolor}">

or to be a little cleaner the following:

<fo:table-cell number-rows-spanned="2" font-size="10pt"
text-align="start"
color="black" padding="2pt" 
border="{concat($border,' ','solid','',$bordercolor)}">


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread