From: Thorsten Ohl <ohl@physik.uni-wuerzburg.de>
To: caml-list@inria.fr
Subject: [Caml-list] Dynamic HTML: DTD validation with phantom types
Date: Wed, 30 Apr 2003 03:20:41 +0200 [thread overview]
Message-ID: <200304300120.h3U1KfL25181@wptx47.physik.uni-wuerzburg.de> (raw)
The source code and a trivial example are currently the only
documentation, but some people might find
http://theorie.physik.uni-wuerzburg.de/~ohl/xhtml/
useful anyway. In short, it is a translation of most XHTML 1.1
modules into a set of phantom types that allow the O'Caml typechecker
to validate dynamically generated HTML pages.
This is nothing spectacular, but might inspire somebody to create
_really_ cool hacks:
1) Since I just did a straightforward manual translation of the
DTD, an automatic translator is possible.
2) Camlp4 hacks could be very neat ...
3) ... perhaps including even a DTD parser!
Enjoy,
-Thorsten
--
Thorsten Ohl, Physics Dept., Wuerzburg Univ. -- ohl@physik.uni-wuerzburg.de
http://theorie.physik.uni-wuerzburg.de/~ohl/ [<=== PGP public key here]
-------------------
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
reply other threads:[~2003-04-30 1:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200304300120.h3U1KfL25181@wptx47.physik.uni-wuerzburg.de \
--to=ohl@physik.uni-wuerzburg.de \
--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