nbsp in XSLT files

It is not predefined. Only < > & " ' are predefined.
You can either use   or  , or you can define an entity like nbsp
for the same.

Try:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/XSL/Transform"; version="1.0">
  <xsl:template match="article/b2/tekst">
    <tr>
      <td>&nbsp;&nbsp;&nbsp;</td>
      <td>
        <xsl:value-of select="./@author"/>
      </td>
      <td>&nbsp;&nbsp;&nbsp;</td>
    </tr>
  </xsl:template>
</xsl:stylesheet>

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

November 21. 2008 09:24 PM