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

RE: Unexpected behavior with xsl:choose, xsl:when, xsl

Subject: RE: Unexpected behavior with xsl:choose, xsl:when, xsl:variable
From: Américo Albuquerque <melinor@xxxxxxx>
Date: Fri, 8 Aug 2003 22:28:22 +0100
xsl choose xsl variable
Hi.

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Samuel Bruce
> Sent: Friday, August 08, 2003 3:41 PM
> To: xsl
> Subject:  Unexpected behavior with xsl:choose, xsl:when, 
> xsl:variable
> 
> 
> Hello,
> 
> I learned of this list from another users group. I
> hope that you won't mind my question.
> 
> I have a xsl file which sets an xsl:variable at the
> start of the file (before the match:template) from
> either a request parameter or a session parameter. The
> variable is defined as:
> 
> <xsl:variable name="var1">
> <xsl:value-of select="parm"/>
> </xsl:variable>
This creates a rtf, is better to use <xsl:variable name="var1"
select="parm"/>

Your <parm> might be like:
<parm>
A
</parm>
This is setting $var1 as:
'
A
'
Wich is different from 'A'
Check your <parm> and change it to <parm>A</parm>, or, if you want to keep
your definition, use <xsl:when test="normalize-space($var1)='A'">

(...)
Regards,
Américo Albuquerque


 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.