Last post Sep 22, 2010 09:04 AM by Martin_Honnen
Sep 22, 2010 07:37 AM|kkelvin|LINK
I am creating HTML script using XSLT, in that one place I need to provide the name like
<Title> <Script> Last Name <Space> First Name
Ex: Mr. Kumar Kelvin
I required to give space between last name and first name. How to script like this in XSLT. I tried using
and   but I am getting Â
is the output.
my script is
<td align='left' width='100%' valign='top' style ='font-size:12pt; font-family:Times New Roman'>
<xsl:value-of select="TITLE" disable-output-escaping="yes" /> <xsl:value-of select="FIRSTNAME" disable-output-escaping="yes" /> <xsl:value-of select="LASTNAME" disable-output-escaping="yes" />
Sep 22, 2010 09:04 AM|Martin_Honnen|LINK
Putting <xsl:text> </xsl:text> where you want the non-breaking space should work fine. If you get a different character displayed then we need to look into details on how you create the XSLT transformation result and how you look at the transformation
result. Do you use XSLT programmatically i.e. with System.Xml.Xsl.XslCompiledTransform? If so post the exact code you have written to perform the transformation including how you read the stylesheet and write the output.