This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: vars for attributes
- From: "bryan" <bry at itnisk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 25 Jul 2002 17:12:07 +0200
- Subject: RE: [xsl] vars for attributes
- Reply-to: xsl-list at lists dot mulberrytech dot com
-----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