[Xsltforms-support] xforms context function
Brought to you by:
alain-couthures
From: Christopher D. <cd...@vi...> - 2010-02-02 13:51:32
|
It appears that the context function does not work correctly. Here is sample code to reproduce the issue: <xf:repeat id="books" nodeset="instance('library')/books/book"> <xf:trigger appearance="minimal"> <xf:label> <xf:output ref="title"/> </xf:label> <xf:setvalue ref="instance('customer')/book/title" value="context()/title" ev:event="DOMActivate"/> </xf:trigger> </xf:repeat> It appears that the context function is returning a reference to the instance('customer')/book/title node, not the instance('library')/books[index('books')]/book node as expected. Have I misunderstood the purpose of this function? http://www.w3.org/TR/xforms11/#fn-context Chris |