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 QAA05185; Sat, 6 Jul 2002 16:09:17 +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 QAA05072 for ; Sat, 6 Jul 2002 16:09:17 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com (r-mi214-6a232.tin.it [62.211.4.232]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g66E9F911122 for ; Sat, 6 Jul 2002 16:09:15 +0200 (MET DST) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id 426202724D for ; Sat, 6 Jul 2002 16:15:44 +0200 (CEST) Message-ID: <3D26FB90.7050509@baretta.com> Date: Sat, 06 Jul 2002 16:15:44 +0200 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: it, en MIME-Version: 1.0 To: Ocaml Subject: Re: [Caml-list] XML, XSL, eXcetera References: <24542c290fd7023473fa0a397374847c@caldo.demon.co.uk> <3D24975C.2020003@baretta.com> <20020704235143.A621@ice.gerd-stolpmann.de> <3D24CF9E.8010904@baretta.com> <20020705080644.GB5297@cs.unibo.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk First of all, let me excuse myself for having been away from this discussion for a couple of days, but I could not help it. The cause, unfortunately, is a tragedy which hit me abruptly. Stefano Zacchiroli wrote: > Sure, it's named "/usr/bin/ocaml" :-) > > Try this script: > > #!/usr/bin/ocamlrun /usr/bin/ocaml > print_endline "Hello, world!" > > You can use all toplevel directives so you can also use libraries that > support dynamic loading. BTW, if you want to use a library that doesn't > support dynamic loading you have to use a relinked ocaml interpreter or > you will be in trouble. > > Maybe I've misunderstood your question ... > > Cheers. > I was thinking about something more specific to XML processing. Something like a application/processing server to be connected with Apache and the like. Such a process would have to listen on a socket for connections from clients requesting the processing of tags or of an otherwise specified ocaml expression. I am now thinking that maybe this would be overshooting the mark here, if we are simply thinking of integrating O'Caml code in XSLT stylesheets, where the processor is an O'Caml application. In this case, one could conceivably link the toplevel into the XSLT processor. As an XSLT template is activated, if there is any O'Caml code associated with it, the processor could just pass it to the "virtual" toplevel within it for immediate excecution. Alex ------------------- 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