Thanks, I wrote a very rudimentary function that simply strips @ and &. I am sure its not quite that simple but for the html fragments I am dealing with it seems to be enough.<div><br></div><div>-pp</div><div><br><div>
<br><div class="gmail_quote">On Sun, Jul 25, 2010 at 5:21 PM, Neil Van Dyke <span dir="ltr"><<a href="mailto:neil@neilvandyke.org">neil@neilvandyke.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Pedro Pinto wrote at 07/25/2010 11:04 AM:<div class="im"><br>
<br>
> I am using neil/htmlprag to generate sxml and lizorkin/sxml to manipulate it. I would like to mash together the resulting sxml with my own generated xexprs. Is there a recommended way to go about this? Ideally I would like to be able to use both xexprs and sxml since each format seems to have a different set of useful toolkits.<br>
<br></div>
I think that the short-term solution is to write an "shtml->xexprs" procedure. This procedure is mostly just a simple tree traversal. (I wrote such a procedure, but regrettably no longer have access to that code.)<br>
<br>
Longer-term, I plan to release some libraries and a spec for a new format that's mostly backward-compatible with both SXML and xexprs, and that adds a few things that neither format has. I've actually found only one nontrivial difference between SXML and xexprs, and I don't think that difference is worth fragmenting the base of libraries over, nor worth the increased bugs as programmers intermix both formats in their code. (I did most of this library and spec work last year, but it needs polishing up and be reviewed by SXML and PLT people, so that the spec is fairly stable before anyone starts depending on it. I've also committed to doing a couple SRFIs on the spec and libraries.)<br>
<font color="#888888">
<br>
-- <br>
<a href="http://www.neilvandyke.org/" target="_blank">http://www.neilvandyke.org/</a><br>
</font></blockquote></div><br></div></div>