Altova Mailing List Archives

Re: Crazy idea: loopback namespace

From: "Jon Smirl" <jonsmirl@------------>
Date: 2/25/2000 7:20:00 AM
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:template name="B">
    <xsl:param name="foo" select="def"/>

      <xsl:value-of select="$foo"/>

Jon Smirl

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.