From: Norman Walsh Date: Sun, 9 Jun 2002 11:43:04 +0000 (+0000) Subject: Fix bug #496453: make sure comments don't contain illegal chars X-Git-Tag: release/1.79.1~6^2~5594 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ce4bf623a644bc96884154d163e6a690cab0215;p=docbook-dsssl Fix bug #496453: make sure comments don't contain illegal chars --- diff --git a/xsl/fo/index.xsl b/xsl/fo/index.xsl index c2ca705e9..cf588e2ea 100644 --- a/xsl/fo/index.xsl +++ b/xsl/fo/index.xsl @@ -99,15 +99,19 @@ - - - , - - - - , - - + + + + + , + + + + , + + + + diff --git a/xsl/lib/lib.xweb b/xsl/lib/lib.xweb index d51255d1c..3be848c49 100644 --- a/xsl/lib/lib.xweb +++ b/xsl/lib/lib.xweb @@ -554,6 +554,73 @@ absolute path from the root of the tree to the current element node. + + + + +comment-escape-string +Prepare a string for inclusion in an XML comment + + +Description + +The comment-escape-string template returns a string +that has been transformed so that it can safely be output as an XML comment. +Internal occurrences of "--" will be replaced with "- -" and a leading and/or +trailing space will be added to the string, if necessary. + + + + + + + + + + + + + + + + + + + + + + + + +comment-escape-string.recursive +Internal function used by comment-escape-string + + +Description + +The comment-escape-string.recursive template is used +by comment-escape-string. + + + + + + + + + + + + + + + + + + + + + @@ -690,6 +757,8 @@ around these functions. + +