Comment

Comment by rwmj

I've actually used CDuce in production. It was certainly interesting, a kind of "XSLT/XPath done right". However it had major drawbacks such as being very difficult to deploy and not having any easy way to integrate with existing OCaml code (ocamlcduce was a camlp4 extension which tried to integrate the two but was tricky to get going). For example you can really easily and powerfully parse XML documents, but you can't save the result in a database or even to a flat file (even printing the result is hard).

I should say that it's no longer developed and no longer works with any currently available versions of OCaml.

Nowadays I use libxml2 from OCaml instead and just insert untyped XPath expression strings into my code, so that's a step backwards from the point of view of safety, but at least it works.

https://web.archive.org/web/20101125015934/http://merjis.com... http://ocsoap.forge.ocamlcore.org/

parent rwmj 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton