X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fuwobo%2Fsrc%2Focaml%2Fuwobo.ml;h=22714b29a837b6ba18bcb3edb144a5b3b2590568;hb=820b01694fd38e896112a304a3988928ae18390f;hp=af7f47cc4307200368f687e3d48ef29ed90e868d;hpb=d8566ee98ccb6c4422720a793609c74b26079bc4;p=helm.git diff --git a/helm/uwobo/src/ocaml/uwobo.ml b/helm/uwobo/src/ocaml/uwobo.ml index af7f47cc4..22714b29a 100644 --- a/helm/uwobo/src/ocaml/uwobo.ml +++ b/helm/uwobo/src/ocaml/uwobo.ml @@ -24,8 +24,8 @@ * http://cs.unibo.it/helm/. *) -(* TODO quando si prova ad applicare uno stylesheet che non e' stato caricato -viene lasciata passare una eccezione Not_found *) +(* TODO braindead situation: /add of a stylesheet which uri is an uwobo +invocation *) open Printf;; open Uwobo_common;; @@ -67,7 +67,62 @@ in let syslogger = new Uwobo_logger.sysLogger ~level:debug_level () in syslogger#enable; let styles = new Uwobo_styles.styles in -let usage_string = "Help message: not yet written!!" in (* TODO *) +let usage_string = + sprintf +" + +
++ Usage: http://hostname:uwoboport/command +
++ Available commands: +
+
+ help
+ display this help message
+
+ add?bind=key,uri[&bind=key,stylesheet[&...]]
+ load a new stylesheet, specified by uri, and bind it to key
+ key
+
+ remove?[?keys=key1,key2,...]
+ unload stylesheets specified by key1, key2, ... or all
+ stylesheets if no key was given
+
+ reload?[?keys=key1,key2,...]
+ reload stylesheets specified by key1, key2, ... or all
+ stylesheets if no key was given
+
+ list
+ return a list of loaded stylesheets
+
+ apply?xmluri=uri&keys=key1,key2,...[¶m.name=value[¶m.name=value[&...]]][¶m.key.name=value[¶m.key.name=value[&...]]][&name[=value][&prop.name[=value][&...]]]
+ apply a chain of stylesheets, specified by key1, key2, ..., to an
+ input document, specified by uri.
+ Additional parameters can be set for each stylesheet application: global
+ parameters (i.e. parameters passed to all stylesheets) are set using
+ param.name=value syntax, per stylesheet parameters are set using
+ param.key.name=value where key is the key of a loaded
+ stylesheet.
+ Properties of the final chain output can be set too: valueless properties
+ can be set using prop.name syntax, others can be set using
+ prop.name=value syntax.
+ Current supported properties are: %s.
+