Re: [Xsltforms-support] xsltforms help with: load/resource/@value single quote escaping
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2011-12-26 13:23:35
|
Hello Dominic, The "standard" way to escape ' and " characters in XML is to use entities. Please try again with: <xf:load> <xf:resource value="concat('javascript:myfunc("',@att1,'","',@att2,'","',@att3,'")')"/> </xf:load> Thank you for your feedbacks! -Alain Le 24/12/2011 19:17, dom a écrit : > Would very much appreciate any help with the following: > > Given a javascript function myfunc('xxx','yyy','zzz') > > and an xforms instance element containing attributes att1="xxx" > att2="yyy" att3="zzz" > > how do I call this function from the resource child element of a load > element ie: > > <xf:load> > <xf:resource > value="concat('javascript:myfunc(''',@att1,''',''',@att2,''',''',@att3,''')')"/> > </xf:load> > > which produces the correct result in Saxon but in XSLTForms returns an > 'operator unknown' error > at the position of the first escaped single quote. > > Thanks > Dominic Martin > > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |