I am wondering.. is tree view/navigation possible to do (and somewhat easily) in XForms given a XML data structure?
If it is possible, where can I find a really excellent example (code and hopefully a work开发者_C百科ing form to view)?
Also, are there any tips you have for implementing this? (I'm new to XForms, and only know the basics so far)
Thanks so much!
:D
I am not sure what you mean exactly by "tree navigation", but if you have a tree-like structure with arbitrary nesting in XML, and want to show it to end-users as a tree, you can if using Orbeon Forms, you can use the appearance="xxforms:tree"
on a <xforms:select1>
or <xforms:select>
. See for instance:
http://wiki.orbeon.com/forms/how-to/icons-tree
This will be rendered as a tree on you web page, e.g.:
Tree screenshot http://wiki.orbeon.com/forms/_/rsrc/1261447340941/how-to/icons-tree/Orbeon%20Forms%20Example%20Applications%20-%20Tree%20Widget-1.png
Did you have a look at http://en.wikibooks.org/wiki/XForms/Folding_Menus ??
-Alain
精彩评论