Sequences (Continued)

So does this:

<xsl:value-of 
     select="for $p in products return
               if ($p/@price) 
               then xs:decimal($p/@price)
               else (xs:decimal($p/@cost) * 1.5)"/>