|
Subject: Re: [xsl] How can I simulate a replicate-function in xsl: replicate('abc',3) -> 'abcabcabc' From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Thu, 14 Mar 2002 11:22:57 +0100 |
<xsl:template name="replicate">
<xsl:param name="string" select="'default'"/>
<xsl:param name="count" select="1"/>
<xsl:if test="count > 0">
<xsl:value-of select="$string"/>
<xsl:call-template name="replicate">
<xsl:with-param name="string" select="$string"/>
<xsl:with-param name="count" select="$count - 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template><xsl:template match="/">
<xsl:call-template name="replicate">
<xsl:with-param name="string" select="'abc'"/>
<xsl:with-param name="count" select="3"/>
</xsl:call-template>
</xsl:template>Regards, Joerg
Hi,
Can you tell me how to simulate a replicate-function in xsl: replicate('abc',3) -> 'abcabcabc'
Greetings René {@ @} ^ \_/
"You don't need eyes to see, you need vision!"
System Development VIRBUS AG Fon +49(0)341-979-7411 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How can I simulate a repl, Christopher R. Maden | Thread | [xsl] xsl:with-param, Corneanu Dan |
| Re: [xsl] EXSLT in ASP.NET?, cutlass | Date | Re: [xsl] dealing with languages, Jiri Jirat |
| Month |