I have some problem to write in the page-flow.xml if i have the tag xmlns="http://www.orbeon.com/oxf/controller".There is some mode to delet this tag and put at the end with one xpl service with some java code.
|
a simply version about my problem code: <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <xhtml:head> <xhtml:title>problema2</xhtml:title> <xforms:model> <xforms:instance id="instance-page-flow" src="oxf:/apps/tirocinio/page-flow.xml"/> <xforms:instance id="instance-new-page"> <new-page xmlns=""> <page id="" view="" model=""/> </new-page> </xforms:instance> </xforms:model> </xhtml:head> <xhtml:body> <xforms:trigger appeareance="minimal"> <xforms:label>insert</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:insert context="instance('instance-page-flow')" nodeset="config/page" origin="instance('instance-new-page')/page"/> </xforms:action> </xforms:trigger> <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/> </xhtml:body> </xhtml:html> when in the page-flow i have only xmlns="" on config there isn't problem but if i have xmlns="http://www.orbeon.com/oxf/controller" the insert put in the new tag page also xmlns="" that I don't want because there isn't in the instance-new-page |
Administrator
|
Simone,
On Thu, Aug 21, 2008 at 1:35 AM, simone123456 <[hidden email]> wrote: > when in the page-flow i have only xmlns="" on config there isn't problem but > if i have > xmlns="http://www.orbeon.com/oxf/controller" the insert put in the new tag > page also xmlns="" > that I don't want because there isn't in the instance-new-page Sorry, I got lost; you mention an issue in the page-flow.xml, but quote an XForms file. Could you tell us again about this one and quote the files that are involved (in particular the page flow if this is relevant). Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
The page-flow is the sequent : <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors"> <page path-info="/tirocinio/problema2" view="framework/problema2/problema2.xhtml"/> <epilogue url="oxf:/config/epilogue.xpl"/> </config> is the standard page-flow but if I do the xforms that insert a page in this page-flow I have the problem that i have mention upper |
Administrator
|
On Aug 25, 2008, at 1:20 AM, simone123456 wrote:
> The page-flow is the sequent : > <config xmlns="http://www.orbeon.com/oxf/controller" > xmlns:oxf="http://www.orbeon.com/oxf/processors"> > > > > > <page path-info="/tirocinio/problema2" > view="framework/problema2/problema2.xhtml"/> > > > <epilogue url="oxf:/config/epilogue.xpl"/> > </config> " on the <config> element of the page-flow, but not when having just xmlns="". I don't see how this could make a difference, given your page flow. Also, if you have xmlns="" in the page flow, you would need to have something like xmlns:pfc="http://www.orbeon.com/oxf/ controller" and use the pfc prefix everywhere (e.g. <pfc:config>). I am not sure that I really understand the issue here. Maybe you can attach a simple test case we can run and that reproduces the problem you describe. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
The problem is very simple. I have done one xforms that for work good I must put in the page-flow that is the same page-flow that we use for controller(the simple page-flow.xml that is used for controll the page).Therefore this xforms must modify own page-flow but for work good(the xforms application) i must put in the page-flow's config only xmlns"" instead of xmlsn"http://www.orbeon.com/oxf/controller" but certainly this is wrong because the page-flow can't have xmln="".Now I have try with your solution that if i have good understand is this page-flow code: <pfc:config xmlns="" xmlns:pfc="http://www.orbeon.com/oxf/controller" xmlns:oxf="http://www.orbeon.com/oxf/processors"> <page path-info="/tirocinio/problema2" view="framework/problema2/problema2.xhtml"/> <epilogue url="oxf:/config/epilogue.xpl"/> </pfc:config> but this give me this error: Error Probably namespace URI of tag "page" is wrong (correct one is "http://www.orbeon.com/oxf/controller")(schema: http://www.orbeon.com/oxf/controller) and now if i put xmlns="http://www.orbeon.com/oxf/controller" instead of xmlns="" is ok for orbeon but not for my xforms application(that change own page-flow) that want xmlns="". I hope that now I explained better. simone ------- |
Administrator
|
Simone,
On Tue, Aug 26, 2008 at 1:45 AM, simone123456 <[hidden email]> wrote: > I hope that now I explained better. Sorry, I am still lost :). I think that sharing with us code that we can easily run and that shows the problem is the way to go. For different way to share code with people on the list, see: http://www.orbeon.com/ops/doc/home-faq#reporting-issues Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
problem2.zip this is the application |
Administrator
|
On Wed, Aug 27, 2008 at 1:40 AM, simone123456 <[hidden email]> wrote:
> http://www.nabble.com/file/p19176922/problem2.zip problem2.zip > > this is the application OK, I see, thank you. I got confused because you are *editing* a page flow with XForms, which is not what most people do with page flows :). There were a few issues: the <page> element that you then insert was not in the right namespace and the XPath expressions where not using a prefix for that namespace. I think that everything becomes more clear if you avoid setting a default namespace. I modified the two files you had; you can find this attached to this email. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 problem2.zip (2K) Download Attachment |
thanks perfect now I have another problem for display modify and save to disk not one text but one tag that there isn't in the page-flow; but this is another story.
Working in progress :-)~
|
Administrator
|
Simone,
On Thu, Aug 28, 2008 at 3:19 AM, simone123456 <[hidden email]> wrote: > thanks perfect now I have another problem for display modify and save to disk > not one text but one tag that there isn't in the page-flow; but this is > another story. > Working in progress :-)~ I am glad this helped. And of course, once one problem is solved, there is another one coming. Otherwise, we wouldn't have anything left to do, would we? :) Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ 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 |
Free forum by Nabble | Edit this page |