Re: problems rendering kanren-sourceforge.scm using PLT SSAX/SXML distro
[email protected] Mon, 31 May 2004 21:31:36 -0700 (PDT)
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <[email protected]> |
Hello! Alas I cannot comment on the PLT distribution. I can however tell how kanren-sourceforge.html was generated from the corresponding .scm file. It was with the help of the following simple GNU Makefile ---begin-make # Directory where all the "included" modules are located LIB=../SSAX/lib # Converter function. We are using Bigloo at present. It's one long line CONV=bigloo -i -s -I $(LIB) -eval "(module html (include \"myenv-bigloo.scm\") (include \"srfi-13-local.scm\") (include \"util.scm\") (include \"SXML-tree-trans.scm\") (include \"SXML-to-HTML.scm\") (include \"SXML-to-HTML-ext.scm\"))" # Convert SXML to HTML %.html: %.scm $(CONV) $*.scm > $@ ---end-make LIB points to a directory that is a local copy of the SSAX/lib directory from the CVS repository. The (module help ...) declaration enumerates all Scheme files that are loaded from the LIB directory first. After that, the file in question, e.g., kanren-sourceforge.scm is loaded and the result is written into kanren-sourceforge.html. Despite the need to load a bunch of files in an interpreter, the whole process is quite fast. I could just as well used SCM or Petite Chez or Gambit: the only change is in the prelude file myenv-*.scm, and a different module declaration (alas, almost each Scheme system has its own module system). Gauche Scheme supports SXML more natively, so fewer files need to be loaded. Regarding the file try.scm: from what I know, I don't think that any of "ssax.ss", "stx-engine.ss", "stx-xsl.ss", and *path* are really needed. PLT experts are in a better position to comment. Regarding performance: I use SXML-to-HTML conversion in a production environment. For example, you can try the following (non-production) server: http://www.metnet.navy.mil/cgi-bin/oleg/server/grids/ http://www.metnet.navy.mil/cgi-bin/oleg/server/imagery/ In both cases the queries are quite complex and involve joins and other frills. The SXML generation and the conversion to XML is done on the fly. BTW, for various reasons, three different computers (not counting the firewalls) are engaged in answering your request. Cheers, Oleg ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click