← Prev in month
← Prev in thread
Next in thread →
Next in month →
Re: [xml-dev] Turning Off the Output Stream or Just a Return Value from a Templ ate
you could wrap the call-template in a variable: <xsl:variable name="result"> <xsl:call-template name="search"> <xsl:with-param name="search_pattern" select="substring-before($theMacroStrings, ';')"/> </xsl:call-template> </xsl:variable> and save yourself some trouble in the template too: <xsl:template name="search"> <xsl:param name="search_pattern"/> <xsl:if test="//cmacro = $search_pattern">true</xsl:if> </xsl:template> as you've probably figured out, the variable you set there is not accessible where you need it anyhow. though i'd consider ditching the whole template: <xsl:variable name="result" select="//cmacro = substring-before($theMacroStrings, ';')"/> which will be either boolean true or false a better forum for XSL-relate q's is hth, /m Martin Klang http://www.o-xml.org - the object-oriented XML programming language
← Prev in month
← Prev in thread
Next in thread →
Next in month →