[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Crazy idea: loopback namespace

Subject: Re: Crazy idea: loopback namespace
From: "Jon Smirl" <jonsmirl@xxxxxxxxxxxx>
Date: Fri, 25 Feb 2000 12:20:09 -0500
jon foo
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.