bzlib/xml.plt has sxml->xexpr and xexpr->sxml that might be of use to you. <div><br></div><div><br></div><div><div class="gmail_quote">On Sun, Jul 25, 2010 at 5:33 PM, pedro pinto <span dir="ltr"><<a href="mailto:pedro.e.pinto@gmail.com">pedro.e.pinto@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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><font color="#888888"><div>-pp</div></font><div><div></div><div class="h5"><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" target="_blank">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><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>
</div></div><br>_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>yc<br><br>Taming the software dragon - <a href="http://dragonmaestro.com">http://dragonmaestro.com</a><br>
<br>
</div>