[plt-scheme] SXML and nbsp
Hi
I found a solution to this and wanted to post it. The following worked
correctly:
(td (@ (width "2%"))  \; )
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%"> </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
>
>