|
next
|
 Subject: Trying to add spaces between variables Author: Lauren McDonald Date: 03 May 2007 12:06 PM
|
Hi all, I'm trying to add spaces between variables, and it does not seem to be working. I'm making mailing labels that are generated as a pdf document which then can be printed on a sheet of mailing labels. Here in Canada the specifications are that the city, province, and postal code are to be on one line with a space between city and province, and two spaces between province and the postal code. The most I can get between the province and the postal code is one space. Can anyone help me?
CITY, PROV, and POSTAL are XML nodes.
Here is my code:
<fo:block>
<xsl:variable name="newcity">
<xsl:value-of select="concat(CITY,' ')"/>
</xsl:variable>
<xsl:variable name="newprov">
<xsl:value-of select="concat(PROV, ' ', ' ')"/>
</xsl:variable>
<xsl:value-of select="$newcity"/><xsl:value-of select="$newprov"/><xsl:value-of select="POSTAL"/>
</fo:block>
end of code
If you need a better explaination let me know.
Lauren
|
|
|