This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: creating a string of repeated charactors
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] creating a string of repeated charactors
- From: "cutlass" <cutlass at secure0 dot com>
- Date: Mon, 16 Jul 2001 07:45:34 +0100
- References: <001501c10dad$4ff90e30$a301a8c0@3d38kw1n0b1udc>
- Reply-To: xsl-list at lists dot mulberrytech dot com
----- Original Message -----
From: "Tim Watts" <timw@3d3.com>
To: "XSL Mailing List (E-mail)" <XSL-List@lists.mulberrytech.com>
Sent: Monday, July 16, 2001 5:10 AM
Subject: [xsl] creating a string of repeated charactors
> I'm sure this must be a simple command, but how would something like a
> string of 8 charactors be output in XSLT.
hello tim,
there are many ways of doing this, try looking at the exslt.org link below
http://www.exslt.org/str/functions/padding/index.html
here is the link to the xslt template u may use
http://www.exslt.org/str/functions/padding/str.padding.template.xsl
u can directly use this individual template by either cutting and pasting or
xsl:import ( u have to remember to either use the correct namespace if
importing ).
there also may be some function defined with Steve Ball's XSLT Standard
Library effort
http://xsltsl.sourceforge.net/
cheers, jim fuller
>
> In ASP it might look something like
> String(8 - Len(num), "*")
>
> Thanks
> Tim :)
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list