variables inside itemsets
Posted by
Jeremiah Jahn-4 on
Jan 19, 2010; 12:35am
URL: https://discuss.orbeon.com/variables-inside-itemsets-tp1017167.html
I have a situation where I get the label of an item in an itemset from a different instance. I do this all over the place w/ repeats, and keep the name() as a variable to use to do the look up in my xpath [id = $name] kinda thing. I can't seem to figure out a way to do this with an itemset in a select1. Or is there a way to generate an set of items for use in a select1 using a repeat?
I've included an example of what I'm trying to do, I know it won't work, but will give you an idea of what I'm trying to accomplish. Thanks for any help.
<xforms:itemset nodeset="instance('view')/template-view/query/*[1]/*">
<xforms:variable name="currentItemName" select="name()"/>
<xforms:label ref="xxforms:attribute(name(),instance('types')/types/type[@typeID = $currentItemName]/label)"/>
<xforms:value ref="xxforms:attribute(name(),name())"/>
</xforms:itemset>
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws