Re: [xsl] how to test if attribute=''

Subject: Re: [xsl] how to test if attribute=''
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
Date: Wed, 03 Jul 2002 12:55:15 +0000
can u give us more info about your requirement..
- can there be many lab tests done on the same day?
- can there be many many days in which one labtest may be carried out??
- or is it that there is one-to-one with lab test and days??
vasu


From: "RPGupta" <rpgupta@xxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [xsl] how to test if attribute=''
Date: Wed, 3 Jul 2002 16:43:48 +0530

Hi ,

I have the data in the xml file. I want to display the data in crosstab
form. How to write

<row>
    <Labtest>
            <Date> 01/01/2001</Date>
            <LabTestid>L001</LabTestid>
            <value> 100 </value>
    </Labtest>
    <Labtest>
            <Date> 01/02/2001</Date>
            <LabTestid>L002</LabTestid>
            <value> 200 </value>
    </Labtest>
</row>

How to write the xsl to display the date in crosstab. to get the data like

                        01/01/2002            01/02/2002
L001                100
L002                                                200

Regards,
RPGupta

----- Original Message -----
From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, July 03, 2002 4:16 PM
Subject: RE: [xsl] how to test if attribute=''


It depends upon what you want to do really.. string function returns the string value of its arguments vasu

>From: "Aniceto" <aniceto@xxxxxxxxxxxxx>
>Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>Subject: RE: [xsl] how to test if attribute=''
>Date: Wed, 3 Jul 2002 11:58:35 +0200
>
>Vasu: I tried test="not(@whatever ='')" but not working (maybe it works for
>you).
>finaly I've found that test="string(@whatever)" is working prity nice
>
>thanks anyway
>
>Ani Lopez
>
>
>-----Mensaje original-----
>De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de Vasu Chakkera
>Enviado el: miércoles, 03 de julio de 2002 11:36
>Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Asunto: Re: [xsl] how to test if attribute=''
>
>
> >your test
> ><xsl:if test="@whatever !=''"> need not mean what it is intended to mean.
> >you may try <xsl:if test="not(@whatever ='')">
> >The above two expressions are not the *same* though it looks logical to
> >assume so.If there is no *whatever* attribute , the first test is false
> >while the second is true.
> >vasu
>
>
>
>
> >From: "Aniceto" <aniceto@xxxxxxxxxxxxx>
> >Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> >To: "xsl-list" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> >Subject: [xsl] how to test if attribute=''
> >Date: Wed, 3 Jul 2002 10:50:32 +0200
> >
> >Hi:
> >I need to test if an attribute has some text or not
> > whatever=''
> > whatever='sdfbzf'
> ><xsl:if test="@whatever !=''"> is not working
> >whis is the simplest way to test it?
> >thanks in advance
> >
> >ani lopez
> >
> >
> > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
>
>
>_________________________________________________________________
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.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





_________________________________________________________________ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.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




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread