All,
I am attempting to place spaces/indent text in a column in my HTML table. I am reading a XML file using XSLT 1.0 and writing it to a HTML file. I have tried the following:
<?xml version='1.0' encoding='utf-16'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="utf-16"/>
<tr>
<td/>
<td>
<xsl:text xml:space="preserve"> </xsl:text>
<xsl:value-of select="concat('Substantiation-',
@sourceID, ' (', current(), ')')"/>
</td>
</tr>
The results when viewed in Internet Explorer (opened from the generated html file) looks like:
 Substantiation-9010 (p 1-5, Para 1-10.)
I have also tryed 	,  , and   it has similar or no results.
I am assuming that I have an encoding issue (thanks to Michael Kay for pointing that out), however I’m not sure what I’m doing wrong since I am specifing the encoding in the output tag. Does anyone know how to either add space/tab so it looks correct when viewed in IE?
Thank you for your help!!!
I couldn’t get the spaces to show up correctly. Everything suggested here from what I read should have worked. However, it wasn’t for me. I ended up using an image with a transparent background.