From: Alessandro Baretta <alex@baretta.com>
To: Ocaml <caml-list@inria.fr>
Subject: Re: [Caml-list] XML, XSL, eXcetera
Date: Sat, 06 Jul 2002 16:15:44 +0200 [thread overview]
Message-ID: <3D26FB90.7050509@baretta.com> (raw)
In-Reply-To: <20020705080644.GB5297@cs.unibo.it>
<off_topic>
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.
</off_topic>
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 <?ocaml ...?> 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
next prev parent reply other threads:[~2002-07-06 14:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-04 8:45 forsyth
2002-07-04 18:43 ` Alessandro Baretta
2002-07-04 21:51 ` Gerd Stolpmann
2002-07-04 22:43 ` Alessandro Baretta
2002-07-05 8:06 ` Stefano Zacchiroli
2002-07-06 14:15 ` Alessandro Baretta [this message]
2002-07-04 22:46 ` Henrik Motakef
2002-07-05 0:15 ` Alain Frisch
2002-07-05 16:36 ` Claudio Sacerdoti Coen
2002-07-06 14:22 ` Alessandro Baretta
2002-07-08 12:29 ` Claudio Sacerdoti Coen
[not found] <Pine.LNX.4.21.0207040823410.30756-100000@vestra.bendery.md>
2002-07-04 8:34 ` Alessandro Baretta
-- strict thread matches above, loose matches on Subject: below --
2002-07-03 22:59 Alessandro Baretta
2002-07-03 23:02 ` Alexander V.Voinov
2002-07-04 0:34 ` Alessandro Baretta
2002-07-04 8:33 ` Stefano Zacchiroli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D26FB90.7050509@baretta.com \
--to=alex@baretta.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox