logger#log `Debug "Creating xsl:output node ...";
let elt = last_stylesheet#createElementNS (Some xslNS) q_outputS in
let root = last_stylesheet#get_documentElement in
- ignore (root#insertBefore (elt :> Gdome.node) root#get_firstChild);
+ ignore (root#appendChild (elt :> Gdome.node));
elt
| Some node -> new Gdome.element_of_node node)
in
let params =
List.map (fun (key,value) -> (key, "'" ^ value ^ "'")) (params key)
in
- Gdome_xslt.applyStylesheet ~source ~stylesheet ~params
+ logger#log
+ `Debug
+ (sprintf
+ "Gdome_xslt.applyStylesheet params=%s"
+ (String.concat ", " (List.map (fun (k,v) -> k^": "^v) params)));
+ let res = Gdome_xslt.applyStylesheet ~source ~stylesheet ~params in
+ res
with e -> raise (Uwobo_failure (Printexc.to_string e)))
input
p_stylesheets