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 RAA22487; Wed, 9 Apr 2003 17:59:31 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA22213 for caml-list@pauillac.inria.fr; Wed, 9 Apr 2003 17:59:30 +0200 (MET DST) 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 OAA07610 for ; Tue, 8 Apr 2003 14:28:54 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h38CSr917609 for ; Tue, 8 Apr 2003 14:28:53 +0200 (MET DST) Received: from di.ens.fr (di.ens.fr [129.199.99.1]) by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h38CSrbX009790 for ; Tue, 8 Apr 2003 14:28:53 +0200 (CEST) Received: from basilic.ens.fr (monniaux@basilic [129.199.99.48]) by di.ens.fr (8.12.9/jb-1.1) id h38CSrRo025939 for ; Tue, 8 Apr 2003 14:28:53 +0200 (MEST) Received: from localhost (monniaux@localhost) by basilic.ens.fr (8.11.0/jb-1.1) id h38CSp618677 for ; Tue, 8 Apr 2003 14:28:51 +0200 (MEST) X-Authentication-Warning: basilic.ens.fr: monniaux owned process doing -bs Date: Tue, 8 Apr 2003 14:28:50 +0200 (MEST) From: David Monniaux X-Sender: monniaux@basilic.ens.fr To: "'Liste CAML'" Subject: mixing different languages (was: RE: [Caml-list] dynamic HTML pages) In-Reply-To: <036001c2fdc6$522084d0$0a00a8c0@gateway> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam: no; 0.00; monniaux:01 caml-list:01 mattias:01 waldau:01 heredoc:01 alain:01 frisch:01 camlp:01 frontpage:99 tbody:99 foreach:01 ocamlnet:01 ocaml:01 off-topic:01 jsp:98 X-Spam: no; 0.00; monniaux:01 caml-list:01 mattias:01 waldau:01 heredoc:01 alain:01 frisch:01 camlp:01 frontpage:99 tbody:99 foreach:01 ocamlnet:01 ocaml:01 off-topic:01 jsp:98 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, 8 Apr 2003, Mattias Waldau wrote: > I use HereDoc by Alain Frisch. I think I use an old version. > It works like JSP. Very simple to use. Based on camlp4. This is slightly off-topic, but: In the case of dynamic WWW pages, it is often the case that the same script or program actually contains code written in several languages: HTML, SQL, OCaml/PHP/Perl, XML... For integration, a mechanism of quotation/antiquotations (à la Camlp4) is nice. Are there any text editors that are aware of such mixed programs? Another alternative for HTML would be to have a regular HTML page, perhaps edited with HTML generation tools (FrontPage, Quanta+...), with special tags indicating special actions. For instance: a table output from a bibliographic database would look like
It would only be a matter of parsing this regular HTML page with a SGML parser such as OCamlNet, replacing ... by iteration and tags by iteration variables. Has there been something done around that kind of things? David Monniaux http://www.di.ens.fr/~monniaux Laboratoire d'informatique de l'École Normale Supérieure, Paris, France ------------------- 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