Gurus,
I am hoping someone out there knows something about xsl style sheet. I am having trouble with the xsl below:
<xsl:template name="break-clist">
<xsl:param name="text"/">
<xsl:choose>
<xsl:when test="contains($text,',')">
<xsl:variable name="this-item"<br"/>select="normalize-space(substring-before($text,','))"/>
<xsl:if test="$this-item">
<replacespart>
<xsl:value-of select="$this-item"/">
</replacespart>
</xsl:if>
<xsl:call-template name="break-clist">
<xsl:with-param name="text" select="substring-after($text,',')"/">
</xsl:call-template>
</xsl:when>
<xsl:when test="normalize-space($text)">
<replacespart>
<xsl:value-of select="concat($this-item,$text)"/">
</replacespart>
</xsl:when>
</xsl:choose>
</xsl:template>
Basicall, I am getting an error that says "the variable this-item is not declared" in the concat statement. I am tyring to concatenate the value of this-item with the value of text and display them on one line separated by a comma. The variable this-item is declared and initialized in the upper section of the code and I need to referrence it in the lower portion where I am concatenating the two.
Any help is appreciated.
Thanks
Alexius C. Chukwuka
IT Analyst, PDP Systems
John Deere Power Systems
Product Engineering Center