Ok.  So this boils down to "let's get CXML" handle entities.

How do we do that?

In general I have found most (X)HTML writing facilities lacking in this or that respect.  Since I am using CXM to do the reading, it would be natural not to depend on YAL (Yet Another Library) to do the reading.  I am willing to help extending it, instead of rolling out my XHTMΛ (pun intended :) ) html writing facility.

One note.  Having to write (cxml:unescaped sink "Λ") is a workaround, but it is not really a nice thing, since I have to manually break the string.  Especially when we think of the standard SLDJ lover who tries out CXML :)

So.  Somewhere, a string in a XHTML processor is "compiled" to generate SAX events.  That is where the entity processing should go.  Where exactly is this bit?

Cheers
--
Marco



On May 11, 2011, at 15:20 , rm@tuxteam.de wrote:

On Wed, May 11, 2011 at 02:22:15PM +0200, David Lichteblau wrote:
So is there a reason for the lack of entity reference writing support?
Mainly just that I've never needed it myself.  Usually I would just
write the actual character.  Λ means the same thing as the
character with the code 923 on any Lisp with Unicode support, and every
XML parser can Unicode characters.

The entity 'λ' could mean _anything_ depending on context:

<?xml version='1.0' />

<!doctype marketing-blah [
<!ENTITY lambda "Lambda Inc. - World leader in artificial inteligence">
]>

<marketing-bal>
  <title>Wlecome to the world of &lambda;</title>

....

Bundle this with xinclude and you get a lot of reasons to support entity
reference writing.


Cheers, Ralf Mattes



--
Marco Antoniotti