module T = Table
module M = Matrix
+let xhtbl = "xhtbl"
+
let i = 0
let myself = F.basename (Sys.argv.(0))
let ind i = S.make (2 * i) ' '
let out_cell och cell =
- let cc = border cell in
+ let cc = xhtbl :: border cell in
P.fprintf och "%s<td class=\"%s\"%s>%s</td>\n"
- (ind (i+4)) (S.concat " " cc) (name cell) (key cell)
+ (ind (i+3)) (S.concat " " cc) (name cell) (key cell)
let out_row och row =
- P.fprintf och "%s<tr>\n" (ind (i+3));
+ P.fprintf och "%s<tr class=\"%s\">\n" (ind (i+2)) xhtbl;
A.iter (out_cell och) row;
- P.fprintf och "%s</tr>\n" (ind (i+3))
+ P.fprintf och "%s</tr>\n" (ind (i+2))
let out_space och (name, uri) =
let name = if name = "" then name else ":" ^ name in
let output och name matrix =
P.fprintf och "<xsl:template name=\"%s\">\n" name;
- P.fprintf och "%s<table cellpadding=\"4\" cellspacing=\"0\">\n" (ind (i+1));
- P.fprintf och "%s<tbody>\n" (ind (i+2));
- A.iter (out_row och) matrix.M.m;
- P.fprintf och "%s</tbody>\n" (ind (i+2));
+ P.fprintf och "%s<table class=\"%s\" cellpadding=\"4\" cellspacing=\"0\">\n" (ind (i+1)) xhtbl;
+ A.iter (out_row och) matrix.M.m;
P.fprintf och "%s</table>\n" (ind (i+1));
P.fprintf och "</xsl:template>\n\n"