From: Norman Walsh Date: Mon, 28 Jan 2002 16:15:09 +0000 (+0000) Subject: Added html.cleanup parameter; if non-zero, do some post-processing of RTFs to improve... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ee90e202b9b90153d6934fb44dd9da5fcebd76d;p=docbook-dsssl Added html.cleanup parameter; if non-zero, do some post-processing of RTFs to improve formatting --- diff --git a/xsl/html/block.xsl b/xsl/html/block.xsl index b29a0a66a..21fb16915 100644 --- a/xsl/html/block.xsl +++ b/xsl/html/block.xsl @@ -1,7 +1,5 @@ - -

- - - - - + +

+ + + + + - - -

+ + +

- - + + + + + + + + + +
diff --git a/xsl/html/footnote.xsl b/xsl/html/footnote.xsl index 4cb169c67..c81ef6f51 100644 --- a/xsl/html/footnote.xsl +++ b/xsl/html/footnote.xsl @@ -109,35 +109,7 @@ - - - - - ftn. - - - - - - # - - - - -

- - [ - - - - ] - - -

-
- - + ftn. @@ -164,6 +136,7 @@ + @@ -226,9 +199,9 @@ - +
- +
@@ -254,9 +227,9 @@ - +
- +
diff --git a/xsl/html/html-rtf.xsl b/xsl/html/html-rtf.xsl new file mode 100644 index 000000000..8fa7bcd21 --- /dev/null +++ b/xsl/html/html-rtf.xsl @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index 91692192f..4adf04ea0 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -56,6 +56,7 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 95ecaf147..5a3846886 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -149,6 +149,7 @@ to be incomplete. Don't forget to read the source, too :-) &html.longdesc; &html.longdesc.link; &make.valid.html; +&html.cleanup; XSLT Processing @@ -340,6 +341,7 @@ around all these parameters. + diff --git a/xsl/params/html.cleanup.xml b/xsl/params/html.cleanup.xml new file mode 100644 index 000000000..43fa6b4f1 --- /dev/null +++ b/xsl/params/html.cleanup.xml @@ -0,0 +1,29 @@ + + +html.cleanup +boolean + + +html.cleanup +Attempt to clean up the resulting HTML? + + + + + + + + +Description + +If non-zero, and if the EXSLT +extensions are supported by your processor, the resulting HTML will be +cleaned up. This improves the chances that the +resulting HTML will be valid. It may also improve the formatting of +some elements. + +This parameter is different from make.valid.html +because it uses extension functions to manipulate result-tree-fragments. + + + diff --git a/xsl/params/make.valid.html.xml b/xsl/params/make.valid.html.xml index e44e9034a..d73a1881a 100644 --- a/xsl/params/make.valid.html.xml +++ b/xsl/params/make.valid.html.xml @@ -21,5 +21,10 @@ extra effort to ensure that the resulting HTML is valid. This may mean that some para tags are translated into HTML divs or that other substitutions occur. +This parameter is different from html.cleanup +because it changes the resulting markup; it does not use extension functions +to manipulate result-tree-fragments and is therefore applicable to any +XSLT processor. +