[xsl] Problem w/ call-template

Subject: [xsl] Problem w/ call-template
From: Kim <kimba_40@xxxxxxxxx>
Date: Wed, 29 May 2002 16:11:23 -0700 (PDT)

I cannot figure out what is wrong w/ the following call-template.  Help!
The input XML file should have repetition of element:


This is a segment of the XSL file.  I'm trying call the template
"lastSubString" which recursively substring-after until the last substring. 
The "string" contains at least 2 substrings and can be up tothe nth string. 
The substring are seperated by a "," delimiter.  I need to get the last
substring in every string in the XML input file.

I got an error msg: Could not find template named: "lastSubString".  It is from
the "***" line.  What am I missing  here?  I checked the spelling; it is fine.


<xsl:template match="String">
	***<xsl:call-template name="lastSubString">
		<xsl:with-param name="originalString" select="."/>

<xsl:template name="lastSubString">
	<xsl:param name="originalString"/>
      		<xsl:when test="contains($originalString,',')">
       			<xsl:call-template name="lastSubString">
                 		<xsl:with-param name="$originalString"
   	  Last substring: <xsl:value-of select="$originalString"/>




May the force be with you.

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread