This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Quexo question


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/field[@name='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 qexo-general@gnu.org might be better.
--
--Per Bothner
per@bothner.com http://per.bothner.com/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]