|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:call-template question
Here is the way I would solve it. Regards, Gerard <?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- / Template --><xsl:variable name="nexttemplate">1</xsl:variable> <xsl:template match="/">
<HTML>
<xsl:call-template name="buildpage">
<xsl:with-param name="nexttemplate">buildbody</xsl:with-param>
</xsl:call-template>
</HTML>
</xsl:template><!-- buildpage Template --> <xsl:template name="buildpage">
<xsl:param name="nexttemplate">defaulttemplate</xsl:param>
Invoking <xsl:value-of select="$nexttemplate"/>
<xsl:choose>
<xsl:when test="$nexttemplate = 'buildbody'">
<xsl:call-template name="buildbody"/>
</xsl:when>
<xsl:when test="$nexttemplate = ''">
<xsl:call-template name="defaulttemplate"/>
</xsl:when>
</xsl:choose>
</xsl:template><xsl:template name="defaulttemplate"> In defaulttemplate </xsl:template> <!-- buildbody Template --> <xsl:template name="buildbody"> <BODY> </BODY> </xsl:template> </xsl:stylesheet> At 11:36 AM 2/16/00 -0800, you wrote: Hello,
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








