What a mess of fractured syntax - just shows to go what happens when you tke more than 5 hours to write an email. The code I included has been tested on Gambit 4.0.1 and works. There were 2 portability issues: CALL-WITH-OUTPUT-STRING and EVAL. Unfortunately  the CALL-WITH-OUTPUT-STRING issue is solved rather brutishly by redefining it to a form that is more widely compatible across existing Scheme implementations. The EVAL portability issue was able to be handled in a way that does not affect any other code.

I am still working on a cleaner version of the entire system, but I thought I should make more clear what I had actually posted.

- drr

On Nov 12, 2007 12:39 PM, David Rush < kumoyuki@gmail.com> wrote:
On Nov 11, 2007 6:04 PM, Adrien Pierard <pierarda@iro.umontreal.ca> wrote:
On Tue, Nov 06, 2007 at 11:16:36AM -0800, jonnay@jonnay.net wrote :
Would it be possible to have someone develop a webserver which would
accept SXML instead on HTML to describe content of webpages ?

I have an s-expression based template system which should work on any R5RS Scheme. Unfortunately I have not yet completed testing it on Gambit, but I am posting it here anyway, since I said I would earlier. I actually have rather more of a framework available, but I just haven't yet finished porting and checking everything. Additionally, there is a certain amount of dead weight (like 6KLOC) code in the package as I am sending it due to library dependencies - mainly on SRFIs, but also on some of my private libraries (primarily an Aho-Corasick multi-pattern string matcher which is overkill here, but since it works it saved me some time writing a lighter weight parser).  I am working towards a trimmed down version, but I thought I should get this out sooner rather than later.

In addition to the original source modules (2 files, eval-code.s2 and template.s2), there are also a few test data files and a test harness program in the tarball. There is no documentation. I hope that y'all might find it useful anyway.

david rush
--
Once you label me, you negate me
   - Soren Kierkegaard



--
Once you label me, you negate me
   - Soren Kierkegaard