xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor