From ef43a3630ede1caf3ca3532c95241ea95993e6db Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 25 Jun 2007 04:36:37 +0000 Subject: [PATCH] Updated stylesheets to use common logging template to log messages emitted during namespace-stripping. Also, moved pad-string template from lib to common because it's needed in order to use logging template in the profiling stylesheets, and the lib build relies on the profiling apparatus (so the profiling apparatus can't rely on lib being built first...) --- xsl/common/common.xsl | 93 +++++++++++++++++++++++++++++++++-- xsl/common/stripns.xsl | 33 +++++++++++-- xsl/fo/docbook.xsl | 28 ++++++++++- xsl/html/chunk-code.xsl | 27 +++++++++- xsl/html/docbook.xsl | 29 +++++++++-- xsl/lib/lib.xweb | 69 -------------------------- xsl/profiling/xsl2profile.xsl | 14 +++--- 7 files changed, 200 insertions(+), 93 deletions(-) diff --git a/xsl/common/common.xsl b/xsl/common/common.xsl index 55ed906d5..fd95fcca0 100644 --- a/xsl/common/common.xsl +++ b/xsl/common/common.xsl @@ -1836,7 +1836,6 @@ unchanged. - @@ -1878,7 +1877,6 @@ unchanged. - @@ -1936,7 +1934,6 @@ unchanged. - @@ -2002,7 +1999,6 @@ unchanged. profile parameter) - @@ -2118,7 +2114,6 @@ engine does not support it. Outputs a message (generally, to standard error). - @@ -2190,4 +2185,92 @@ engine does not support it. + + + Get a title for the current document + + The get.doc.title template is a + utility template for returning the first title found in the + current document. + + + Returns a string containing some identifying title for the + current document . + + + + + + + + + + + + + + + Right-pad or left-pad a string out to a certain length + + This function takes string padVar and + pads it out in the direction rightLeft to + the string-length length, using string + padChar (a space character by default) as + the padding string (note that padChar can + be a string; it is not limited to just being a single + character). + + + This function began as a copy of Nate Austin's + prepend-pad function in the Padding + Content section of Dave Pawson's XSLT + FAQ. + + + + Returns a (padded) string. + + + + + + + left + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/common/stripns.xsl b/xsl/common/stripns.xsl index 18d18441a..ad3d4f5db 100644 --- a/xsl/common/stripns.xsl +++ b/xsl/common/stripns.xsl @@ -20,6 +20,14 @@ versions of the DocBook stylesheets. ******************************************************************** --> + + + + + + + + @@ -259,11 +267,26 @@ - - WARNING: cannot add @xml:base to node - set root element. - Relative paths may not work. - + + Warn + + + no @xml:base + + + cannot add @xml:base to node-set root element + + + + Warn + + + no @xml:base + + + relative paths may not work + + diff --git a/xsl/fo/docbook.xsl b/xsl/fo/docbook.xsl index b1f9bbfaf..553329136 100644 --- a/xsl/fo/docbook.xsl +++ b/xsl/fo/docbook.xsl @@ -117,19 +117,43 @@ + + + + + + stylesheets for DocBook5 if you don't want to use this feature.--> - Stripping namespace from DocBook 5 document. + + Note + + + namesp. cut + + + stripped namespace before processing + + + + Note + + + namesp. cut + + + processing stripped document + + diff --git a/xsl/html/chunk-code.xsl b/xsl/html/chunk-code.xsl index cd853e20a..a6f7a70f4 100644 --- a/xsl/html/chunk-code.xsl +++ b/xsl/html/chunk-code.xsl @@ -389,6 +389,11 @@ + + + + + diff --git a/xsl/html/docbook.xsl b/xsl/html/docbook.xsl index d438c40e6..87c7c9587 100644 --- a/xsl/html/docbook.xsl +++ b/xsl/html/docbook.xsl @@ -326,16 +326,30 @@ body { background-image: url(' + + + + + + stylesheets for DocBook5 if you don't want to use this feature.--> - Stripping namespace from DocBook 5 document. + + Note + + + namesp. cut + + + stripped namespace before processing + + @@ -349,7 +363,16 @@ body { background-image: url(' --> - Processing stripped document. + + Note + + + namesp. cut + + + processing stripped document + + diff --git a/xsl/lib/lib.xweb b/xsl/lib/lib.xweb index b821265dd..f53a373aa 100644 --- a/xsl/lib/lib.xweb +++ b/xsl/lib/lib.xweb @@ -633,74 +633,6 @@ by comment-escape-string. - - -pad-string -Right-pad or left-pad a string out to a certain length - - -Description - -This function takes string padVar and - pads it out in the direction rightLeft to - the string-length length, using string - padChar (a space character by default) as - the padding string (note that padChar can - be a string; it is not limited to just being a single - character). - - - This function began as a copy of Nate Austin's - prepend-pad function in the Padding - Content section of Dave Pawson's XSLT - FAQ. - - - - - - - - left - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - trim.text @@ -1248,7 +1180,6 @@ around these functions. - diff --git a/xsl/profiling/xsl2profile.xsl b/xsl/profiling/xsl2profile.xsl index a8e2eafcb..2c69596ce 100644 --- a/xsl/profiling/xsl2profile.xsl +++ b/xsl/profiling/xsl2profile.xsl @@ -62,15 +62,15 @@ - Stripping NS from DocBook 5/NG document. - - - - Processing stripped document. - + Note: namesp. cut : stripped namespace before processing + + + + Note: namesp. cut : processing stripped document + - + -- 2.40.0