Subject: RE: [xsl] XSL:if condition shows runtime error................ From: Preethi Suthakar <pree_73@xxxxxxxxx> Date: Mon, 26 Mar 2001 11:17:54 -0800 (PST) |
Thanks for your reply. The double quote that you spotted is a typo. I typed it by mistake in the mail that I sent you. I do not know why Iam getting that error. Pls, help me..... Well, I shall try with xsl:choose. Thanks. --- "Diamond, Jason" <Jason.Diamond@xxxxxxx> wrote: > 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] 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 > __________________________________________________ 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL:if condition shows ru, Diamond, Jason | Thread | RE: [xsl] XSL:if condition shows ru, Diamond, Jason |
[xsl] Profiling XSLT Transformation, Christian Mallwitz | Date | [xsl] DSSSL->XSLT; problems impleme, AKillian |
Month |