Hey,
is it possible to get an xforms:output as xml? I am trying to get html-content from a processor into an instance. In my document, there is an output which is referencing to this instance. BUT, the output of my instance, is only the content IN the element-tags. So because of the fact, that my content contains html -tags which i would like to be interpreted in my output, i need an idea how to get the whole instance into my output. Any ideas? greetz |
Administrator
|
I think you are looking for something like xxforms:serialize():
http://wiki.orbeon.com/forms/doc/developer-guide/xforms-xpath-functions#TOC-xxforms:serialize- -Erik On Wed, Nov 3, 2010 at 8:54 AM, hospbene <[hidden email]> wrote: > > Hey, > > is it possible to get an xforms:output as xml? > > I am trying to get html-content from a processor into an instance. > > In my document, there is an output which is referencing to this instance. > BUT, the output of my instance, is only the content IN the element-tags. > So because of the fact, that my content contains html -tags which i would > like to be interpreted in my output, i need an idea how to get the whole > instance into my output. > > Any ideas? > > greetz > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xforms-output-as-xml-not-only-content-tp3025610p3025610.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 > > -- 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 |
hey erik,
thanks a lot. That was definitely what I was searching for. But there's a funny effect. On Firefox 3.6 the output of my xml is not indented. On safari 5 it IS indented. But i am trying to get it, look like the output of the "fr:inspector-widget". Is it possible to get an instance outputed as the widget does? bene |
Administrator
|
It's a bit tricky. Check if this sample works for you:
https://gist.github.com/668562 -Erik On Mon, Nov 8, 2010 at 1:27 AM, hospbene <[hidden email]> wrote: > > hey erik, > > thanks a lot. That was definitely what I was searching for. But there's a > funny effect. On Firefox 3.6 the output of my xml is not indented. On safari > 5 it IS indented. But i am trying to get it, look like the output of the > "fr:inspector-widget". Is it possible to get an instance outputed as the > widget does? > > bene > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xforms-output-as-xml-not-only-content-tp3025610p3031668.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 > > -- 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 |
he erik,
yeah it works great. thanks a lot for your help. /bene Am 09.11.2010 um 02:13 schrieb Erik Bruchez: > It's a bit tricky. Check if this sample works for you: > > https://gist.github.com/668562 > > -Erik > > On Mon, Nov 8, 2010 at 1:27 AM, hospbene <[hidden email]> wrote: >> >> hey erik, >> >> thanks a lot. That was definitely what I was searching for. But there's a >> funny effect. On Firefox 3.6 the output of my xml is not indented. On safari >> 5 it IS indented. But i am trying to get it, look like the output of the >> "fr:inspector-widget". Is it possible to get an instance outputed as the >> widget does? >> >> bene >> -- >> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xforms-output-as-xml-not-only-content-tp3025610p3031668.html >> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 >> >> > > -- > 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 -- 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 |
Salut Erik,
same problem here. What ist he best way to display xml fragments the same colorful way your wiki or the Instance Explorer widget does. I am struggling a little. Is it necessary to create a own widget fort hat? Regards Ilja Werner -- 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 |
Ilja,
I put together a small example XBL component which you can use to display XML. It also supports various other languages. It uses and supports all languages listed in http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/. As I mentioned this is a very basic example. It is hard coded to use default style and refer to java and javascript brushes. You need to include required js and css based on our needs. Unzip the attacment to xforms-sandbox/samples and access it as http://localhost:8080/orbeon/xforms-sandbox/sample/syntaxhighlighter/syntax syntaxhighlighter.zip Eric/Alex, What is the best way to dynamically include js and css files? Binesh |
Thanks for that example. I've got that to work although I'm putting it in an "incubator" folder under apps .. links to js and css then have to then be edited in syntax.xhtml re: "Eric/Alex, What is the best way to dynamically include js and css files?" I'm not sure what other ways there are of dynamically including js and css in the standard orbeon distribution. If quercus php servlet is integrated as in this experiment .. http://orbeon-forms-ops-users.24843.n4.nabble.com/integrating-Orbeon-CE-and-Quercus-php-java-servlet-td3041321.html#a3041321 then php can be use to pre-process inclusion of different js and css files .. dynamically. It can be done by calling a php proxiesrunning in xforms-php But also jsp might be used to dynamically preprocess the include syntax. I'm trying to figure out how to ensure that quercus php servlet kicks in first to pre-process xhtml content (e.g. syntax.html) but tgis may not be necessary for your example and a php proxy could work. |
In reply to this post by Binesh Gummadi
Hi thanks a lot. Looks good.
Ilja -----Ursprüngliche Nachricht----- Von: Binesh Gummadi [mailto:[hidden email]] Gesendet: Samstag, 13. November 2010 23:43 An: [hidden email] Betreff: [ops-users] Re: AW: Re: Re: Re: xforms:output as xml(not only content) Ilja, I put together a small example XBL component which you can use to display XML. It also supports various other languages. It uses and supports all languages listed in http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/. As I mentioned this is a very basic example. It is hard coded to use default style and refer to java and javascript brushes. You need to include required js and css based on our needs. Unzip the attacment to xforms-sandbox/samples and access it as http://localhost:8080/orbeon/xforms-sandbox/sample/syntaxhighlighter/syntax http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3041342/syntaxhighli ghter.zip syntaxhighlighter.zip Binesh -- View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xforms-output-as-xml-not-o nly-content-tp3025610p3041342.html Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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 |
Administrator
|
In reply to this post by DL
On Sun, Nov 14, 2010 at 5:03 AM, DL <[hidden email]> wrote:
> re: "Eric/Alex, What is the best way to dynamically include js and css > files?" About this one, in the context of an XBL component, the way to go is to generate with XSLT <xhtml:script> and <xhtml:style> inside the <xbl:template> of your XBL component. More information about this one on: http://stackoverflow.com/questions/4190609/conditionally-include-javascript-file-in-xbl/4197412#4197412 Alex -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |