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

RE: A simple xsl:if question from a newbie

Subject: RE: A simple xsl:if question from a newbie
From: "Jarno Elovirta" <jarno@xxxxxxxxxxxxxx>
Date: Wed, 19 Jul 2000 16:07:02 +0300
RE: A simple xsl:if question from a newbie
> <xsl:for-each select="ROWSET/ROW">
> 	<xsl:if test="substring(Starttime, 1, 10) = {Time}">
>
>         <xsl:value-of select="Body"/>
>       	</xsl:if>
> </xsl:for-each>
> -----------
>
> Unfortunately the condition never returns true.
> Is there anyone who's got some suggestions as to
> why???

Try "normalize-space(substring(Starttime, 1, 11)) =
normalize-space(/page/Time)". You might want to declare the
"normalize-space(/page/Time)" as a variable to save some processing... time.

--
Jarno Elovirta     jarno.elovirta@xxxxxxxxxxxxxx
CODEONLINE Ltd.    http://www.codeonline.com
P.O. Box 538 (Ukonvaaja 2 A), FIN-02130 Espoo, Finland
Mobile: +358 40 747 5572 Fax: +358 9 4393 0410

"Hoc non credo; toga mea surrepta est iterum!"


 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.