UndergroundMan
New Member
I have the following variable in my xslt template.\[code\]<xsl:variable name="spaces" select="' '"/>\[/code\]In the template, I am using the variable as such:\[code\]<xsl:choose> <xsl:when test="InvestmentNone = 'true'"> <u>X</u> </xsl:when> <xsltherwise> <u xml:space="preserve"> <xsl:value-of select="@spaces" xml:space="preserve"/> </u> </xsltherwise></xsl:choose>\[/code\]So, basically, I would like spaces to show up with underline if there's when 'InvestmentNone' is 'false'. The problem is that in the above code, the spaces do not show up. However, if I remove the line \[code\]<xsl:value-of select="@spaces" xml:space="preserve"/>\[/code\]and add \[code\] \[/code\]directly in place, the spaces show up with underline. How can I get the variable method to work? The reason for that is that later on I will use the variable to pad spaces.Thanks ....