Hi Fred,
> I hit a possible issue with the combination of the context() and
> name() function.
>
> 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.
Because XSLTForms implements an XPath 1.0 engine, functions cannot be
used within a path.
>
> The same problem occurs with local-name().
For both XPath 1.0 and XPath 2.0, name() and local-name() are functions
which can have a node as parameter: "name(context())" and
"local-name(context())" work as expected.
Thank you for your feedbacks!
-Alain
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support