[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: creating a string of repeated charactors

Subject: Re: creating a string of repeated charactors
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Mon, 16 Jul 2001 07:45:34 +0100
Re:  creating a string of repeated charactors
----- 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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.