[xsl] Re: FXPath - A comment on EXSL

Subject: [xsl] Re: FXPath - A comment on EXSL
From: "David Rosenborg" <david.rosenborg@xxxxxxxxxx>
Date: Thu, 1 Mar 2001 13:53:30 +0100
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))



David Rosenborg
Pantor Engineering AB

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread