Subject: Re: [xsl] call-template returns nothing was [Newbie question] From: George Cristian Bina <george@xxxxxxx> Date: Mon, 06 Dec 2004 21:52:14 +0200 |
<xsl:template name="funcmsglookup"> <xsl:param name="codef"/> <xsl:if test="codef=0"> <xsl:text/>NEWM</xsl:if> <xsl:if test="codef=1"> <xsl:text>REPL</xsl:text> </xsl:if> <xsl:if test="codef=2"> <xsl:text>CANC</xsl:text> </xsl:if> </xsl:template>
<xsl:template name="funcmsglookup"> <xsl:param name="codef"/> <xsl:if test="$codef=0"> <xsl:text/>NEWM</xsl:if> <xsl:if test="$codef=1"> <xsl:text>REPL</xsl:text> </xsl:if> <xsl:if test="$codef=2"> <xsl:text>CANC</xsl:text> </xsl:if> </xsl:template>
Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Hi,
I stripped out the namespace form th exml and it redners oputput, but none of my xsl:call-template seems to work. I know th eselect for the param is working as I tried outouting the select as a value-of and it output, so assume therefore that the select content is being forwarded to the template being called. But as I put the name of the param on it's own in the template being called either as name or $name I get that literal output, not the value of the select passed in?
A second problem I noticed. The first 4 apply-templates match to, respectively 1 GeneralInformationBlock, 1 UnderlyingSecurities, 1 CorporateActionDetail and 2 CorporateActionOption. In the 2 CorporateActionOption I test for empty element using <xsl:if test="t:SecuritiesMovement!=''"> and <xsl:if test="t:CashPaymentDetails!=''">, but these do not seem to be working the output inside the xsl:if is being called regardless.
Thx.
David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] call-template returns nothing, David at roamware | Thread | RE: [xsl] call-template returns not, David at roamware |
[xsl] call-template returns nothing, David at roamware | Date | RE: [xsl] How to combine consecutiv, Michael Kay |
Month |