This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: creating a string of repeated characters or Padding
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] creating a string of repeated characters or Padding
- From: "Kurt Cagle" <cagle at olywa dot net>
- Date: Thu, 16 Aug 2001 11:41:17 -0700
- References: <78F894212370D511BFB500508B78799F03C623@SYSCOMEX>
- Reply-To: xsl-list at lists dot mulberrytech dot com
>Thanks. Though I must admit I'm not clear on how to call the pad template
in
>my stylesheet.
Chris,
Sorry, you'd call it as a named template:
<xsl:call-template name="pad">
<xsl:with-param name="padChar" select=" '@' "/> <!-- this is the
character to use to pad. -->
<xsl:with-param name="padCount" select="25"/> <!-- this is the number of
characters to generate -->
</xsl:call-template>
Unfortunately, unless you're using the EXSLT classes, there are very few
ways that you can invoke a pad() function directly. I'm trying to figure out
a way to invoke these in the MSXML parser, though I need to check back with
EXSLT to see if I might not have been missing something myself.
-- Kurt
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list