This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: creating a string of repeated charactors



----- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]