You should ask [EMAIL PROTECTED]  They are really good on xsl questions.

<xsl:if test="deviation ='1'">

Charlene
-----Original Message-----
From: Joydeep Bose [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 12:49 PM
To: [EMAIL PROTECTED]; Tim Bachta
Subject: Re: xsl question


To be on the safer side put the fully qualified element:
eg test="/page/deviation = 1"

unless the if statement is in a for-each or something that selects the parent 
node of the deviation element.Then just "deviation" is fine.


Quoting Tim Bachta <[EMAIL PROTECTED]>:

> How would I do an if statement in xsl were I am testing for the value of
> an element?  Example
> 
>  
> 
> <xsl:if test="deviation = 1">
> 
> .....
> 
>  
> 
>  
> 
> where my incoming xml looks like this:
> 
>  
> 
> de                      <deviation>0</deviation> 
> 
>   <                     <compleated-by>N/A</compleated-by> 
> 
>  
> 
> Thanks for the help
> 
>  
> 
> Tim Bachta
> 
>  
> 
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to