Forum Moderators: open

Message Too Old, No Replies

xsl related

         

babloo

5:51 am on Sep 6, 2005 (gmt 0)

10+ Year Member



How do I call xsl-call template conditionally.
I mean i have got two or three <xsl:call-template name="sometemplate"> defined. I need to call these templates in a condition. Any help would be really appreciated.

Thanks..

GordonS

6:47 pm on Sep 18, 2005 (gmt 0)

10+ Year Member



<xsl:choose>
<xsl:when test="condition1=true"><xsl:call-template name="template1" /></xsl:when>
<xsl:when test="condition2=true"><xsl:call-template name="template2" /></xsl:when>
...
<xsl:otherwise>...</xsl:otherwise>
</xsl:choose>