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

RE: Wish List: Allow <xsl:choose> within <xsl:call-template>

Subject: RE: Wish List: Allow <xsl:choose> within <xsl:call-template>
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Thu, 11 Nov 1999 15:58:47 -0700
RE: Wish List: Allow <xsl:choose> within <xsl:call-template>
> I'm afraid that your variable definitions won't be visible outside
> their correspondent <xsl:when> clauses. I'd rather say:
> 
> <xsl:variable name="par_one">
>     <xsl:choose>
>         <xsl:when test="$one">
>             <xsl:value-of select="$one"/>
>         </xsl:when>
>         <xsl:when test="$done" >
>             <xsl:value-of select="$done"/>
>         </xsl:when>
>     </xsl:choose>
> </xsl:variable>

I think I'm starting to see where Clark was going with this. The problem
here is that now $par_one is a result tree fragment consisting of a text
node with the string value of $one or $done. Maybe $one or $done was
actually a boolean or a node-set, for example. The template that $par_one is
passed to as a parameter is probably expecting a certain data type.


 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.