[Xsltforms-support] select1, itemset, value (what is this form doing wrong?)
Brought to you by:
alain-couthures
From: C. M. Sperberg-M. <cm...@bl...> - 2017-07-18 18:50:47
|
Trying to implement a new functionality I thought would be simple, I am running into unexpected difficulties with the xf:select widget. I have put a sample form at http://www.blackmesatech.com/2017/07/testcase/index.xml Several problems are arising: - First and foremost, the menu displayed by the following widget appears to be empty of text, although xf:output statements inserted for diagnostic purposes appear to show that the XPath expressions used are correct. <xf:select ref="p[@id='select']/@items"> <xf:itemset nodeset="list/item"> <xf:label ref="."/> <xf:value ref="@id"/> </xf:itemset> </xf:select> - Second, when I try to use xf:output in the xf:label element, I get an error; ditto when I try to use a constant but remove the @ref binding attribute. Are both the value and the label of an itemset required to use @ref? Anyone who can shed any light on this would receive a large shipment of gratitude (and a beer if we’re ever in the same bar). best, Michael Sperberg-McQueen ******************************************** C. M. Sperberg-McQueen Black Mesa Technologies LLC cm...@bl... http://www.blackmesatech.com ******************************************** |