[Home] [By Thread] [By Date] [Recent Entries]



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 xsl-list@l...

hth,

/m

Martin Klang
http://www.o-xml.org - the object-oriented XML programming language



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member