OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Turning Off the Output Stream or Just a Return Valuefrom a

[ Lists Home | Date Index | Thread Index ]

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, ';')"/>

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>

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@lists.mulberrytech.com



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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS