From ff24f0fce5f4ffb6210d57fbeacc30a05099bb0e Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 8 Jul 2005 10:35:55 +0000 Subject: [PATCH] Added prepend-pad function for right-padding strings to a specific length. --- xsl/lib/lib.xweb | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/xsl/lib/lib.xweb b/xsl/lib/lib.xweb index 8a0c4adcf..dc7db7021 100644 --- a/xsl/lib/lib.xweb +++ b/xsl/lib/lib.xweb @@ -632,6 +632,57 @@ by comment-escape-string. + + +prepend-pad +Right-pad a string out to a certain length + + +Description + +This function takes string padVar and +pads it out 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 is a copy of Nate Austin's + prepend-pad function in the Padding + Content section of Dave Pawson's XSLT + FAQ. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + str.tokenize.keep.delimiters @@ -1107,6 +1158,7 @@ around these functions. + -- 2.50.1