Hi Jeni,
> After wracking my brains all night (see what I mean about life and
> XML?) I thought of one! :)
Oh, sorry for keeping you up :-)
>
> if and then * else - 2
>
> Could be:
>
> if (and) then (*) else (- 2)
>
> or:
>
> (if) and (then) * (else - 2)
As the FXPath grammar is written, IfExpr has higher precedence than AndExpr
so it will be parsed as
if (and) then (*) else (- 2)
Just as:
or and and or and or or and or
Is parsed as:
((or) and (and)) or ((and) or ((or) and (or)))
And not:
(or) and (((and) or ((and) or (or))) and (or))
Cheers,
</David>
David Rosenborg
Pantor Engineering AB
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|