Hi guys..
Does anyone know why the following code adds an extra space..
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="pound">
<xsl:text disable-output-escaping="yes">&</xsl:text>pound;
</xsl:template>
<xsl:template match="/root">
<p><xsl:call-template name="pound" /><xsl:value-of select="/root/dataItem[name='test']/price" /></p>
</xsl:template>
</xsl:stylesheet>
this is the outcome.. £ 100
here is the simple XML...
Code:
<root>
<dataItem>
<name>test</name>
<price>100</price>
</dataItem>
</root>
Cheers
Darren