Since I like Orbeon very much, I now use it in a private project too
:). But I got the problem that the html-editor strips the tags. What is it, that I do wrong? Example: Output: (Fancy buttons and stuff) AnfahrtAdresse:Freie Christengemeinde Schaffhauserstr. 133a 8400 WinterthurFür den Sonntagsgottesdienst bitte Parkplatz beim Friedhof verwenden XForm: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:f="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Mischael's own CMS</title> <f:model> <f:instance xmlns=""> <null/> </f:instance> <f:instance id="parameters" src="input:instance"/> <f:submission id="load" resource="/resources/websites/{instance('parameters')/website}/data{instance('parameters')/path}" method="get" replace="instance"/> <f:submission id="save" resource="/resources/websites/{instance('parameters')/website}/data{instance('parameters')/path}" method="put" replace="none" ref="/"/> <f:send submission="load" ev:event="xforms-ready"/> </f:model> </head> <body> <f:group ref="/*"> <f:label><h1>Article</h1></f:label> <f:output ref="@path"><f:label>Path: </f:label></f:output> <br/> <f:trigger appearance="minimal" ref="@parent"> <f:label>Open parent directory</f:label> <f:action ev:event="DOMActivate"> <f:load resource="directory?website={instance('parameters')/website}&path={@parent}"/> </f:action> </f:trigger><br/> <f:select1 ref="@state"> <f:item> <f:label>New</f:label> <f:value>NEW</f:value> </f:item> <f:item> <f:label>Published</f:label> <f:value>PUBLISHED</f:value> </f:item> <f:label>State: </f:label> </f:select1><br/> <f:input ref="@title"> <f:label>Title: </f:label> </f:input><br/> <f:input ref="@author"> <f:label>Autor: </f:label> </f:input><br/> <f:textarea mediatype="text/html" ref="*[local-name()='body']"/> <br/> <f:submit submission="save"> <f:label>Save changes</f:label> </f:submit> </f:group> </body> </html> Data: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <xhtmlArticle state="NEW" title="Anfahrt" author="" id="XHTMLArticle#36"> <body> <h1>Anfahrt</h1><p><img alt="Kroki" src="documents/Bilder/kroki.jpg"/></p><h3>Adresse:</h3><p>Freie Christengemeinde<br/> Schaffhauserstr. 133a<br/> 8400 Winterthur</p><p>Für den Sonntagsgottesdienst bitte Parkplatz beim Friedhof verwenden</p> </body><gallery title=""/> </xhtmlArticle> You're doing a great job with Orbeon! Cheers, Mischael Schill -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
The HTML that produced by the HTML editor is sent to the server as-is. On the server it is "cleaned" using the TagSoup library first, and then with XSLT. See: http://wiki.orbeon.com/forms/doc/developer-guide/xforms-controls#TOC-HTML-cleanup The XSLT is pretty aggressive for security reasons, and is most likely removing too much stuff. See the page above for where to find that XSLT file, and how to override it. If you'd like us to not filter some elements, just let us know and we can change the clean-html.xsl that ships with Orbeon Forms. Alex |
Alessandro Vernet wrote:
> The HTML that produced by the HTML editor is sent to the server as-is. On > the server it is "cleaned" using the TagSoup library first, and then with > XSLT. See: The problem is, that the editor doesn't even load my data correctly, it only loads the text-nodes. > The XSLT is pretty aggressive for security reasons, and is most likely > removing too much stuff. See the page above for where to find that XSLT > file, and how to override it. If you'd like us to not filter some elements, > just let us know and we can change the clean-html.xsl that ships with Orbeon > Forms. It strips every tag, and I only use p, h*, a, img, etc. Even adding the xmlns for XHTML to my "body" element doesn't work. Mischael -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Ok, I found the "problem": The HTML-Editor doesn't work directly on
XML-Elements, it wrapes them using < and >. It's not nice, but I can work around it. Cheers, Mischael -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Right, in XForms in general controls work on the text content of
attributes or elements. xforms:textarea, with or without mediatype="text/html", still works that way. -Erik On May 12, 2009, at 2:37 AM, Mischael Schill wrote: > Ok, I found the "problem": The HTML-Editor doesn't work directly on > XML-Elements, it wrapes them using < and >. It's not nice, but > I can work around it. > > Cheers, > Mischael > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |