|
Subject: Re: Crazy idea: loopback namespace From: "Jon Smirl" <jonsmirl@xxxxxxxxxxxx> Date: Fri, 25 Feb 2000 12:20:09 -0500 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Crazy idea: loopback namespace, David Carlisle | Thread | Re: Crazy idea: loopback namespace, David Carlisle |
| Problems with Copy-of with xalan, menkell | Date | Re: Crazy idea: loopback namespace, David Carlisle |
| Month |