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

RE: XSL:if condition shows runtime error..............

Subject: RE: XSL:if condition shows runtime error................
From: "Diamond, Jason" <Jason.Diamond@xxxxxxx>
Date: Mon, 26 Mar 2001 11:27:05 -0600
xsl if condition
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


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.