Subject: Re: [xsl] A beautiful way to populate a variable with N blanks? From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 24 Feb 2023 14:48:35 -0000 |
Hi Folks,characters).
$N contains an integer.
$blanks is a string variable. The string is to consist of $N blanks (space
beautiful (simple) solution?
Below is one way to populate $blanks. It's an awful solution. Is there a
<xsl:variable name="tmp" as="xs:string+"> <xsl:sequence select="''" /> <xsl:sequence select="for $i in 1 to $N return (' ')"/> </xsl:variable>
<xsl:variable name="blanks" as="xs:string"> <xsl:value-of select="$tmp" separator=""/> </xsl:variable>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] A beautiful way to populate a, Roger L Costello cos | Thread | Re: [xsl] A beautiful way to popula, Toshihiko Makita tma |
[xsl] A beautiful way to populate a, Roger L Costello cos | Date | Re: [xsl] A beautiful way to popula, Toshihiko Makita tma |
Month |