Subject: RE: XSL:if condition shows runtime error................
From: "Diamond, Jason" <Jason.Diamond@xxxxxxx>
Date: Mon, 26 Mar 2001 11:27:05 -0600
|
Are you sure that this snippet gave you that error? The only problem that's
obvious to me and seems unrelated to your error message is the first
<xsl:value-of> element. It contains an extra double-quote right before the
closing of the start tag.
On a side note, you probably want to use an <xsl:choose> as opposed to
<xsl:if>. Otherwise, you'll always be outputting the value of dateofbirth
regardless of whether or not it equals '12:00:00AM'.
Jason.
> -----Original Message-----
> From: Preethi Suthakar [mailto:pree_73@xxxxxxxxx]
> Sent: Monday, March 26, 2001 9:02 AM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: XSL:if condition shows runtime error................
>
>
> I retrieve XML data from the database using COM
> objects. I have used XSL to display the data in a
> tabular form. The null values in the date column is
> displayed as 12:00:00 AM. I used the XSL: if condition
> to change the display but it says
>
> "Run time error" - The error is
>
> Expected token 'eof' found '='
> date --> = <-- '12:00:00 AM'
>
>
> My code is
>
>
> <TD> <xsl:if test="dateofbirth='12:00:00AM'">
>
> <xsl:value-of select='' "/>
>
> </xsl:if>
>
> <xsl:value-of select="dateofbirth"/>
>
> </TD>
>
>
> I basically want to display nothing in the place where
> 12:00:00AM is displayed in the table. Can someone pls,
> help me. As I have been spending so much time on this.
> Thanks in advance.
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|