|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem w/ call-template
Hi Kim,
I think even then it will still complain about template name do not match or something. I think your xsl fragment should look like this. Correct me if I am wrong, as I am not really a master in xsl. <xsl:template match="String"> [...] ***<xsl:call-template name="lastSubString"> <xsl:with-param name="originalString" select="."/> </xsl:call-template> </xsl:template> <xsl:template name="lastSubString">
<xsl:param name="originalString"/>
<xsl:choose>
<xsl:when test="contains($originalString,',')">
<xsl:call-template name="lastSubString">
<xsl:with-param name="originalString"
select="substring-after($originalString,',')"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
Last substring: <xsl:value-of select="$originalString"/>
</xsl:template>See if this works, which I am preety sure(99.9%) will work. Let me know the resultplease so I can judge myself. Thanks, kepp the good work going. Nilesh Patel From: Peter Davis <pdavis152@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Problem w/ call-template Date: Wed, 29 May 2002 19:53:13 -0700 _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








