[Xsltforms-support] Possible context()/name() issue
Brought to you by:
alain-couthures
From: <fr...@fl...> - 2013-05-06 17:29:48
|
Hi Alain, I hit a possible issue with the combination of the context() and name() function. The example at https://github.com/AlainCouthures/xsltforms/blob/master/testsuite/XForms1.1/Edition1/Chapt07/7.10/7.10.4/7.10.4.a.xhtml works fine (obviously). Line 67 reads: <xforms:setvalue ref="instance('fruitInstance')/bad-fruit" value="context()" /> Clicking 'apple' returns 'apple'. If I replace in line 67 with <xforms:setvalue ref="instance('fruitInstance')/bad-fruit" value="name()" /> it still is ok. Clicking 'apple' returns 'bad-fruit'. If however I replace line 67 with <xforms:setvalue ref="instance('fruitInstance')/bad-fruit" value="context()/name()" /> I expect to see 'fruit' when I click 'apple', but XSLTForms returns a warning, and the return string is empty. The same problem occurs with local-name(). What can be the problem? Thanks, Fred van Blommestein |