Re: [Xsltforms-support] xforms:label with ref attribute
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2012-07-26 07:46:50
|
Hello Terence, > 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)]" Yes, I have recently implemented this for a test case in W3C Test Suite (7.10.4.a context() function). > > Unfortunately, this does not seem to work, as can be seen by the > attached example. This W3C test case is just about the trigger control which is rendered with a SPAN element. > 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);". No, this instruction is for image outputs (8.1.5.d mediatype attribute) but it's easy to add a test for considering the LABEL element similar to the SPAN element (and the TSPAN element for SVG!). This will be present in the next release. Thanks! -Alain |