Re: [Xsltforms-support] Patch that add support for mediatype text/html on xf:output control
Brought to you by:
alain-couthures
From: Nick V. d. B. <ni...@bl...> - 2011-06-05 17:23:18
|
Hi Alain, I will have a closer look at mediatype application/xhtml+xml because all the markup (anchors, divs, ...) are displayed as text when I changed the mediatype from text/html to application/xhtml+xml . On Sun, Jun 5, 2011 at 19:11, Alain Couthures <ala...@ag... > wrote: > 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:output ref="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 lis...@li...https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > -- Regards, Nick Van den Bleeken |