This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@codeonline.com
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]