|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Crazy idea: loopback namespace
Here's any example of chained defaulting that gives me trouble. I call
template A without specifying foo. When I get to template B foo will not be
set to 'def' because the intermediate stage caused foo to be defined as ''
instead of undefined. I need the select on the call to template B to forward
foo in case foo was passed in.
<xsl:call-template name="A"/>
<xsl:template name="A">
<xsl:param name="foo"/>
<xsl:call-template name="B">
<xsl:with-param name="foo" select="$foo"/>
</xsl:call-template>
<xsl:template>
<xsl:template name="B">
<xsl:param name="foo" select="def"/>
<xsl:value-of select="$foo"/>
<xsl:template>
Jon Smirl
jonsmirl@xxxxxxxxxxxx
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








