Subject: RE: [xsl] XSLT Recursive Templates From: "Stevenson Ngila" <Stevenson@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 27 Jun 2003 12:34:47 +0300 |
====//==== Sorry, but what point are you trying to make here? Your template just puts out the string value of an unspecified "d" element into an textarea element. Why would anyone use a recursive template for that? What would you recurse on? What has this to do with text replace functions? David ====//==== XSLT does not recorgnise carriage returns, hence i was forced to use the following recursive template: <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> <xsl:template name="paragrapher"> <xsl:param name="sText"/> <xsl:choose> <xsl:when test="contains($sText, '
')"> <p> <xsl:value-of select="substring-before($sText, '
')"/> </p> <xsl:call-template name="paragrapher"> <xsl:with-param name="sText" select="substring-after($sText, '
')" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <p> <xsl:value-of select="$sText"/> </p> </xsl:otherwise> </xsl:choose> </xsl:template> <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> This slowed down my application alot. Hence discovered that i can make use of the <textarea> tag. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT Recursive Templates, David Carlisle | Thread | Re: [xsl] XSLT Recursive Templates, David Carlisle |
Re: [xsl] number continuation probl, David Carlisle | Date | RE: [xsl] XSLT Recursive Templates, Jim Fuller |
Month |