Content-Transfer-Encoding: 7bit
Stan Pinte wrote:
the following quexo query:
<result>
<field name="one" value="a"/>
<field name="two" value="b"/>
<computed name="hehe" value="{1+2}"/>
<computed name="hehe" value="{/result/address@hidden'one']/@value}"/>
</result>
lies that:
Lies?
C:\export\kawa>java -jar kawa-1.7.jar --xquery -f testm.xml
testm.xml:5:32: unimplemented non-relative PathExpr
testm.xml:5:32: missing '}' or ','
Any idea how to use a relative query there?
While Kawa/Qexo didn't support non-relative PathExpr, the current CVS
version does.
I'm not sure what you're trying to do. The <result> element constructor
does *not* change the "focus" of a path expression, so the value would
probably not be "a". Instead, it would use whatever the focus is in the
outside context. The initial (outer-most) context is is defined by the
implementation - and in Qexo it is unset. (I'm working on a mechanism to
set the outer-most context.)
Note there is no "u" In Qexo. Also, for Qexo-specific questions the list
address@hidden might be better.
--
--Per Bothner
address@hidden http://per.bothner.com/
--
Incoming mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.193 / Virus Database: 260.2.2 - Release Date: 27/10/2003