Re: [Xsltforms-support] Patch that add support for mediatype text/html on xf:output control
Brought to you by:
alain-couthures
From: Alain C. <ala...@ag...> - 2011-06-05 17:09:00
|
Hello Nick, I have already implemented support for mediatype application/xhtml+xml with almost the same instructions! if (this.mediatype == "application/xhtml+xml") { while (element.firstChild) { element.removeChild(element.firstChild); } if (value != null) { element.innerHTML = value; } Actually, XSLTForms was to support XHTML, which doesn't allow innerHTML, for a better SVG support. But XHTML is a problem in other situations... I will add "text/html" if you prefer. Thanks! -Alain Le 05/06/2011 17:36, Nick Van den Bleeken a écrit : > Hi, > > Attached to this e-mail you can find a patch that adds support > for mediatype text/html on an xforms output control. > > Sample markup: > > <xforms:outputref="atom:content"mediatype="text/html"/> > > > With atom:content being of type string containing html markup. With > other words the instance contains a node that holds html markup in an > escaped form (no child nodes, just a plain string). > > > -- > Regards, > > Nick Van den Bleeken > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Discover what all the cheering's about. > Get your free trial download today. > http://p.sf.net/sfu/quest-dev2dev2 > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |