Subject: Re: [xsl] creating a string of repeated charactors From: "cutlass" <cutlass@xxxxxxxxxxx> Date: Mon, 16 Jul 2001 07:45:34 +0100 |
----- Original Message ----- From: "Tim Watts" <timw@xxxxxxx> To: "XSL Mailing List (E-mail)" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx> 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
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
[xsl] creating a string of repeated, Tim Watts | Thread | RE: [xsl] creating a string of repe, Tim Watts |
RE: [xsl] Background color problem , Andreas Waechter | Date | RE: [xsl] creating a string of repe, Tim Watts |
Month |