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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
