cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joydeep Bose <...@dotech.com>
Subject Re: xsl question
Date Thu, 26 Jun 2003 16:49:18 GMT
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 <tbachta@kopent.com>:

> 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: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message