[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSLT Recursive Templates

Subject: RE: XSLT Recursive Templates
From: "Stevenson Ngila" <Stevenson@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 27 Jun 2003 12:34:47 +0300
xslt recursive template
====//====
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, '&#xA;')">
      <p>
        <xsl:value-of select="substring-before($sText, '&#xA;')"/>
      </p>
	<xsl:call-template name="paragrapher">
        <xsl:with-param name="sText" select="substring-after($sText,
'&#xA;')" />
      </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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.