Re: [xsl] creating a string after counting charatercs

Subject: Re: [xsl] creating a string after counting charatercs
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Tue, 07 Jan 2003 13:43:32 +0100
Hello Julia,

if you have a max length of the string, you can do one of the following:

<xsl:value-of select="translate($string, $string, '____________________')"/>

<xsl:value-of select="substring($string, 0, $string-length)"/>

If the string length is undefined, you can use a recursive template.

Regards,

Joerg


jfi@xxxxxxxxxxxxxxxx wrote:
Hi,

I´ve got the following problem: I want to check an attribute value for its
length (e.g. 17 chars) and then create a string with 17 identical
characters, like
"_________________". The string-length check on my attribute works pretty
well, but how do I get the string?

TIA,
Julia

--


System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread