<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 27, 2011, at 18:43 , David Lichteblau wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Quoting Marco Antoniotti (<a href="mailto:marcoxa@cs.nyu.edu">marcoxa@cs.nyu.edu</a>):<br><blockquote type="cite">Guys! Throw me a bone here!!!!!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I don't want to roll out my own XHTML generator!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So, the culprit is SAX:CHARACTERS CXML::SINK , which calls CXML::UNPARSE-INDENTED-TEXT, which calls CXML::SINK-WRITE-EXCAPABLE-ROD. This last function seems wrong as it hardcodes behavior. The problem is that nowhere in the chain there is an obvious place where to put entity handling. Or should CXML::SINK-WRITE-EXCAPABLE-ROD be rewritten? If that is the case, where should entities be found? In the sink, in a stash somewhere else? Or maybe TRT is to build a special XHTML sink?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any ideas?<br></blockquote>[...]<br><blockquote type="cite">On May 16, 2011, at 10:58 , Marco Antoniotti wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On May 16, 2011, at 09:39 , Marco Antoniotti wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">... 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. <br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I meant "writing" :}<br></blockquote></blockquote><br>cxml:unescaped is the "official" solution to implement this.<br>Please use that.</div></blockquote><div><br></div><div>That is not a solution. I do not want to write <font class="Apple-style-span" face="'Courier New'">(:p "And now" (cxml:unescaped "Λ") "!")</font></div>(which, besides, does not work).</div><div><br><blockquote type="cite"><div>As for xhtmlgen, which you seem to be depending on: That's not an<br>official cxml api. It is sample code based on htmlgen by Franz. I've<br>never been a fan of htmlgen, but others like it, and I developed<br>xhtmlgen for bknr, which needed it.<br><br>It's basically still sample code. Copy&paste material.<br><br>If you like it, just put it into your own project, and hack it as<br>desired to add any features you want changed.<br><br>Don't try to dig into any internals within cxml's package. Just look at<br>xhtmlgen, if that is what you want to use.<br></div></blockquote><div><br></div><div>Well, I wouldn't want to do anything with the internals of *any* package :)</div><div><br></div><div>The problem is that even looking ad XHTML-GENERATOR there are several problems in figuring out how to rewrite it using the SAX handlers. It appears to me that the only way of doing this properly is to subclass the sink class by introducing a XHTML-SINK as a hook for specialized SAX methods. Would this be the way to go?</div><div><br></div><div>Cheers</div><div><br></div></div><div>--<br>Marco Antoniotti<br><br></div><br></body></html>