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]

Reply via email to