[plt-scheme] SXML and nbsp

From: Arend P. van der Veen (apvanderveen at att.net)
Date: Mon Feb 21 11:36:47 EST 2005

Hi

I found a solution to this and wanted to post it.  The following worked 
correctly:

(td (@ (width "2%")) &nbsp\; )

If anybody knows of a better solution using ssax please let me know.

Regards,
Arend


Arend P. van der Veen wrote:
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> Hi,
> 
> I have been converting some code from using Xexpr to SXML.  This is used 
> for HTML generation.  I have been very successful.  One problem that I 
> appear to be having is associated with "nbsp".  In Xexpr I would write 
> something like
> 
> (td ((width "2%")) nbsp)
> 
> and get the following in HTML:
> 
> <td width="1%">&nbsp;</td>
> 
> When I try to convert this to SXML as follows:
> 
> (td (@ (width "2%")) nbsp)
> 
> I get the following in HTML (SXML->HTML)
> 
> <td width="1%">nbsp</td>
> 
> Does anybody have any idea how to correct this ?
> 
> Thanks in advance,
> Arend van der Veen
> 
> 



Posted on the users mailing list.