[Xsltforms-support] xforms:label with ref attribute
Brought to you by:
alain-couthures
From: Terence J. <tj...@ga...> - 2012-07-25 17:27:08
|
Hello, By looking at the src/xslt/script/output.xsl.xml file, I gather that it should now be possible to obtain control label text from model instance nodes: xsl:template match="xforms:output | xforms:label[(@ref or @bind) and not(parent::xforms:item) and not(parent::xforms:itemset)]" Unfortunately, this does not seem to work, as can be seen by the attached example. The problem seems to come from the fact that the last line of the XsltForms_output.prototype.setValue function (in src/js/controls/XFOutput.js.xml) states "element.src = value;" instead of "XsltForms_browser.setValue(element, value);". Regards, Terence |