This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to pad space to a text node to make it have specfic length?
- To: xsl-list at mulberrytech dot com
- Subject: Re: How to pad space to a text node to make it have specfic length?
- From: "Albert Tsun" <albert dot tsun at excel dot com dot hk>
- Date: Wed, 18 Oct 2000 18:25:30 +0800
- Reply-To: xsl-list at mulberrytech dot com
Thank you very much.
I can use string-length() to find the needed no of spaces to pad.
However, since there is not for-loop or while-loop like-element in XSLT,
I cannot easily use concat() to form a fixed-length data.
Any suggestion how to do that.
David Carlisle <davidc@nag.co.uk> on 10/18/2000 06:07:25 PM
Please respond to xsl-list@mulberrytech.com
To: xsl-list@mulberrytech.com
cc: (bcc: Albert Tsun/Excel)
Subject: Re: How to pad space to a text node to make it have specfic
length?
> I am trying hard to pad space to a text node so that the data value
> will have a specific length.
<xsl:value-of select="substring(
' ',
string-length(xxxx))"/>
<xsl:value-of select="xxxx"/>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list