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

RE: text output and space padding

Subject: RE: text output and space padding
From: Thorbjørn Ravn Andersen <Thorbjoern.Ravn.Andersen@xxxxxxxxxx>
Date: Wed, 30 May 2001 18:07:14 +0100
space pad string
But then I will need to do a for loop with index like in C:
for (i=0;i<30;i++)
which I know it cannot be done in XSL.  Any ideas?

You can ask for the length of the string with the string-length function and
use that as an argument to substring a suitably long string of spaces.
Will that do?
--
  Thorbjørn Ravn Andersen
  Systemkonsulent - Value Added Services
  Media Development Group
  # MOBILIX  - Prags Boulevard 80 - DK-2300 København S 
  +45 82 33 62 87 

 

 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.