From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA01930; Fri, 4 Oct 2002 17:33:15 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA02166 for ; Fri, 4 Oct 2002 17:33:14 +0200 (MET DST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.185]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g94FXDD00946 for ; Fri, 4 Oct 2002 17:33:13 +0200 (MET DST) Received: from [212.227.126.160] (helo=mrelayng0.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 17xUS0-0004YB-00; Fri, 04 Oct 2002 17:33:12 +0200 Received: from [80.129.96.108] (helo=gate.gerd-stolpmann.de) by mrelayng0.kundenserver.de with asmtp (Exim 3.35 #1) id 17xUS0-0004uW-00; Fri, 04 Oct 2002 17:33:12 +0200 Received: from ice.gerd-stolpmann.de (ice.gerd-stolpmann.de [192.168.0.13]) by gate.gerd-stolpmann.de (Postfix) with ESMTP id 30CEECCDD; Fri, 20 Sep 2002 14:09:08 +0200 (CEST) Received: from ice (localhost [127.0.0.1]) by ice.gerd-stolpmann.de (Postfix) with ESMTP id B2E53B0B7; Fri, 4 Oct 2002 17:33:55 +0200 (CEST) Date: Fri, 4 Oct 2002 17:33:55 +0200 From: Gerd Stolpmann To: Stefano Zacchiroli Cc: caml-list@inria.fr Subject: Re: [Caml-list] HTMLC Message-ID: <20021004153355.GA911@ice.gerd-stolpmann.de> References: <20021004090026.GA3384@cs.unibo.it> <200210040947.LAA18805@pauillac.inria.fr> <20021004141443.GA9205@cs.unibo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20021004141443.GA9205@cs.unibo.it>; from zack@cs.unibo.it on Fre, Okt 04, 2002 at 16:14:43 +0200 X-Mailer: Balsa 1.4.0 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Am 2002.10.04 16:14 schrieb(en) Stefano Zacchiroli: > I use WML since an year and is architecture is built up from a lot of > layers (8 or 9 I didn't remeber), the more useful are two of them: > - inclusion of other files, as already implemented in htmlc (even if > seems to me that WML does not differentiate verbatim inclusion from > the 'normal' one, it scans sources looking for WML special tags > anyway) > - execution of embedded perl statement (obviously I'm talking about > execution at compile time, WML philosophy is the same as HTMLC one) > > What about adding such a feature to HTMLC? > I don't know how hard is to implement such a feature, I can wonder that > it require the instantiation of an ocaml runtime while starting the > compiler, and an 'eval' like statement execution each time some ocaml > code is encountered. I know that Gerd Stoplmann is doing something like > that in PXP (embedding ocaml code in XML document), but I haven't yet > looked at it ... What do you mean? I have never done something like this. Maybe you mix it up with one of the following ideas: - PXP supports some kind of "class selection". Depending of the name of the XML/HTML element, different classes can be instantiated to represent the element in the object tree - In WDialog it is possible to bind ocaml code at various stages of page processing in order to customize the actions. The XML/HTML document and the ocaml code are connected by various kinds of binding tags. It is part of the philosphy to separate the HTML markup from the algorithm generating the HTML blocks from input data. Neither of these concepts need the ocaml compiler at runtime, but I have dynamic HTML pages in mind, so calling the compiler would be a bad idea (security, performance, etc.). Gerd ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners