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
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <xf:model> <xf:instance> <data xmlns=""> <someinput/> </data> </xf:instance> <xf:instance id="resources"> <resources xmlns=""> <label type="somelabel">My label:</label> </resources> </xf:instance> </xf:model> </head> <body> <xf:input ref="someinput"> <xf:label ref="instance('resources')/label[@type = 'somelabel']"> </xf:label> </xf:input> </body> </html>
------------------------------------------------------------------------------ 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
