Hi all,
Is it possible to copy a part of an XML instance into another instance? I tried something like: <xforms:select1 ref="instance('testing')/here" appearance="minimal"> <xforms:label>Refactoring: </xforms:label> <xforms:itemset nodeset="instance('document-instance')/config/refactoring/type"> <xforms:label ref="@description"/> <xforms:copy ref="./*"/> </xforms:itemset> </xforms:select1> But that gives me the error message: "xforms:itemset element must contain one xforms:value or one xforms:copy element." Even though there *IS* an xforms:copy tag in the itemset tag! Here's the full stack trace for the error message: org.orbeon.oxf.common.ValidationException: line 27 of oxf:/config/xforms-widgets.xsl: xforms:itemset element must contain one xforms:value or one xforms:copy element. oxf:/config/xforms-widgets.xsl, line 27, column -1: xforms:itemset element must contain one xforms:value or one xforms:copy element. at org.orbeon.oxf.xforms.XFormsItemUtils$2.startElement(XFormsItemUtils.jav a:276) at org.orbeon.oxf.xml.dom4j.Dom4jUtils.visitSubtree(Dom4jUtils.java:599) at org.orbeon.oxf.xforms.XFormsItemUtils.evaluateItemsets(XFormsItemUtils.j ava:226) at org.orbeon.oxf.xforms.control.controls.XFormsSelect1Control.getItemset(X FormsSelect1Control.java:70) at org.orbeon.oxf.xforms.processor.handlers.XFormsSelect1Handler.end(XForms Select1Handler.java:95) at org.orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerCon troller.java:191) at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContent Handler.java:52) at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterC ontentHandler.java:54) at org.orbeon.oxf.xforms.processor.XFormsToXHTML$4.endElement(XFormsToXHTML .java:390) at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:201) at org.orbeon.oxf.xforms.processor.XFormsToXHTML.outputResponseDocument(XFo rmsToXHTML.java:363) at org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:22 6) at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.j ava:51) at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.j ava:80) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :353) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$100(XIncludeP rocessor.java:41) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2.read(XIncludeProce ssor.java:85) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI mpl.java:488) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$200(XIncludeP rocessor.java:41) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1.readImpl(XIncludeP rocessor.java:79) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProces sor.java:96) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineP rocessor.java:94) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readI mpl(ConcreteChooseProcessor.java:121) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProces sor.java:96) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineP rocessor.java:94) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readI mpl(ConcreteChooseProcessor.java:121) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProces sor.java:96) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineP rocessor.java:94) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1400(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$6.run(PipelineProces sor.java:572) at org.orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java :572) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1500(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput.re adImpl(PipelineProcessor.java:568) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1400(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$6.run(PipelineProces sor.java:572) at org.orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java :572) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1500(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput.re adImpl(PipelineProcessor.java:568) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.TeeProcessor.access$000(TeeProcessor.j ava:36) at org.orbeon.oxf.processor.pipeline.TeeProcessor$1.readImpl(TeeProcessor.j ava:59) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsTinyTree(ProcessorImpl .java:412) at org.orbeon.oxf.processor.ProcessorImpl$5.read(ProcessorImpl.java:445) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI mpl.java:488) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(Processo rImpl.java:443) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C oncreteChooseProcessor.java:184) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C oncreteChooseProcessor.java:229) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C oncreteChooseProcessor.java:229) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:95) at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:96) at org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.jav a:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.orbeon.oxf.servlet.OPSServlet.service(OPSServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:691) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:469) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:403) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at org.orbeon.oxf.servlet.OPSXFormsFilter.doFilter(OPSXFormsFilter.java:85) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ estFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:691) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:469) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:403) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at com.unifiedpost.um.umadmin.xforms.TestIFrameXForm.executeAction(TestIFra meXForm.java:48) at com.unifiedpost.um.umadmin.xforms.TestIFrameXForm.execute(TestIFrameXFor m.java:27) at com.unifiedpost.um.umadmin.accounts.domain.Admin.accept(Admin.java:41) at com.unifiedpost.um.umadmin.common.actions.UMBaseAction.execute(UMBaseAct ion.java:87) at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAc tion.java:58) at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractE xecuteAction.java:67) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommand Base.java:51) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.jav a:304) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableReq uestProcessor.java:283) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal( CharacterEncodingFilter.java:78) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ estFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 51) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 0) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:685) at java.lang.Thread.run(Thread.java:595) Thanks in advance, Gerrit -- 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 |
Hi Gerrit,
The last time I looked, xforms:copy hadn't been implemented in Orbeon Forms yet. I think the suggested work-around is to use xforms:insert instead: http://www.nabble.com/xforms%3Acopy-tf4440626.html#a12669809 Cheers, Dan Dan Godley Standards Developer Origo Services Ltd -----Original Message----- From: Gerrit Germis [mailto:[hidden email]] Sent: 20 November 2007 09:50 To: [hidden email] Subject: [ops-users] copying xml from one instance to another Hi all, Is it possible to copy a part of an XML instance into another instance? I tried something like: <xforms:select1 ref="instance('testing')/here" appearance="minimal"> <xforms:label>Refactoring: </xforms:label> <xforms:itemset nodeset="instance('document-instance')/config/refactoring/type"> <xforms:label ref="@description"/> <xforms:copy ref="./*"/> </xforms:itemset> </xforms:select1> But that gives me the error message: "xforms:itemset element must contain one xforms:value or one xforms:copy element." Even though there *IS* an xforms:copy tag in the itemset tag! Here's the full stack trace for the error message: org.orbeon.oxf.common.ValidationException: line 27 of oxf:/config/xforms-widgets.xsl: xforms:itemset element must contain one xforms:value or one xforms:copy element. oxf:/config/xforms-widgets.xsl, line 27, column -1: xforms:itemset element must contain one xforms:value or one xforms:copy element. at org.orbeon.oxf.xforms.XFormsItemUtils$2.startElement(XFormsItemUtils.jav a:276) at org.orbeon.oxf.xml.dom4j.Dom4jUtils.visitSubtree(Dom4jUtils.java:599) at org.orbeon.oxf.xforms.XFormsItemUtils.evaluateItemsets(XFormsItemUtils.j ava:226) at org.orbeon.oxf.xforms.control.controls.XFormsSelect1Control.getItemset(X FormsSelect1Control.java:70) at org.orbeon.oxf.xforms.processor.handlers.XFormsSelect1Handler.end(XForms Select1Handler.java:95) at org.orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerCon troller.java:191) at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContent Handler.java:52) at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterC ontentHandler.java:54) at org.orbeon.oxf.xforms.processor.XFormsToXHTML$4.endElement(XFormsToXHTML .java:390) at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:201) at org.orbeon.oxf.xforms.processor.XFormsToXHTML.outputResponseDocument(XFo rmsToXHTML.java:363) at org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:22 6) at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.j ava:51) at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.j ava:80) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :353) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$100(XIncludeP rocessor.java:41) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2.read(XIncludeProce ssor.java:85) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI mpl.java:488) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$200(XIncludeP rocessor.java:41) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1.readImpl(XIncludeP rocessor.java:79) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProces sor.java:96) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineP rocessor.java:94) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readI mpl(ConcreteChooseProcessor.java:121) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProces sor.java:96) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineP rocessor.java:94) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readI mpl(ConcreteChooseProcessor.java:121) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProces sor.java:96) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineP rocessor.java:94) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1400(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$6.run(PipelineProces sor.java:572) at org.orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java :572) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1500(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput.re adImpl(PipelineProcessor.java:568) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1400(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$6.run(PipelineProces sor.java:572) at org.orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java :572) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1500(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput.re adImpl(PipelineProcessor.java:568) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.TeeProcessor.access$000(TeeProcessor.j ava:36) at org.orbeon.oxf.processor.pipeline.TeeProcessor$1.readImpl(TeeProcessor.j ava:59) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsTinyTree(ProcessorImpl .java:412) at org.orbeon.oxf.processor.ProcessorImpl$5.read(ProcessorImpl.java:445) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI mpl.java:488) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(Processo rImpl.java:443) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C oncreteChooseProcessor.java:184) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C oncreteChooseProcessor.java:229) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C oncreteChooseProcessor.java:229) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:95) at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:96) at org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.jav a:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.orbeon.oxf.servlet.OPSServlet.service(OPSServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:691) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:469) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:403) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at org.orbeon.oxf.servlet.OPSXFormsFilter.doFilter(OPSXFormsFilter.java:85) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ estFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:691) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:469) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:403) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at com.unifiedpost.um.umadmin.xforms.TestIFrameXForm.executeAction(TestIFra meXForm.java:48) at com.unifiedpost.um.umadmin.xforms.TestIFrameXForm.execute(TestIFrameXFor m.java:27) at com.unifiedpost.um.umadmin.accounts.domain.Admin.accept(Admin.java:41) at com.unifiedpost.um.umadmin.common.actions.UMBaseAction.execute(UMBaseAct ion.java:87) at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAc tion.java:58) at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractE xecuteAction.java:67) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommand Base.java:51) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.jav a:304) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableReq uestProcessor.java:283) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal( CharacterEncodingFilter.java:78) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ estFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 51) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 0) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:685) at java.lang.Thread.run(Thread.java:595) Thanks in advance, Gerrit E-mail disclaimer The information in this e-mail is sent in confidence for the addressee only and may be legally privileged. Unauthorised recipients must preserve this confidentiality and should please advise the sender immediately of the error in transmission and then delete this e-mail. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on its content is prohibited and may be unlawful. Origo Services Limited accepts no responsibility for any loss or damage resulting directly or indirectly from the use of this e-mail or the contents. It is your responsibility to scan for viruses. Origo Services Limited reserves the right to monitor e-mails sent to or from addresses under its control. When you reply to this e-mail, you are consenting to Origo Services Limited monitoring the content of the e-mails you send to or receive from Origo Services Limited. If this e-mail is non-business related Origo Services Limited is not liable for any opinions expressed by the sender. The contents of this e-mail are protected by copyright. All rights reserved. Origo Services Limited is a company incorporated in Scotland (company number 115061) having its registered office at 4th floor, Saltire Court, 20 Castle Terrace, Edinburgh EH1 2EN. -- 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 |
In reply to this post by Gerrit Germis-2
Hi Dan,
Thanks for the info. Too bad though. Any chance this will be in 3.6 ? Cheers Gerrit -----Original Message----- From: Dan Godley [mailto:[hidden email]] Sent: Tuesday, November 20, 2007 11:23 AM To: [hidden email] Subject: RE: [ops-users] copying xml from one instance to another Hi Gerrit, The last time I looked, xforms:copy hadn't been implemented in Orbeon Forms yet. I think the suggested work-around is to use xforms:insert instead: http://www.nabble.com/xforms%3Acopy-tf4440626.html#a12669809 Cheers, Dan Dan Godley Standards Developer Origo Services Ltd -----Original Message----- From: Gerrit Germis [mailto:[hidden email]] Sent: 20 November 2007 09:50 To: [hidden email] Subject: [ops-users] copying xml from one instance to another Hi all, Is it possible to copy a part of an XML instance into another instance? I tried something like: <xforms:select1 ref="instance('testing')/here" appearance="minimal"> <xforms:label>Refactoring: </xforms:label> <xforms:itemset nodeset="instance('document-instance')/config/refactoring/type"> <xforms:label ref="@description"/> <xforms:copy ref="./*"/> </xforms:itemset> </xforms:select1> But that gives me the error message: "xforms:itemset element must contain one xforms:value or one xforms:copy element." Even though there *IS* an xforms:copy tag in the itemset tag! Here's the full stack trace for the error message: org.orbeon.oxf.common.ValidationException: line 27 of oxf:/config/xforms-widgets.xsl: xforms:itemset element must contain one xforms:value or one xforms:copy element. oxf:/config/xforms-widgets.xsl, line 27, column -1: xforms:itemset element must contain one xforms:value or one xforms:copy element. at org.orbeon.oxf.xforms.XFormsItemUtils$2.startElement(XFormsItemUtils.jav a:276) at org.orbeon.oxf.xml.dom4j.Dom4jUtils.visitSubtree(Dom4jUtils.java:599) at org.orbeon.oxf.xforms.XFormsItemUtils.evaluateItemsets(XFormsItemUtils.j ava:226) at org.orbeon.oxf.xforms.control.controls.XFormsSelect1Control.getItemset(X FormsSelect1Control.java:70) at org.orbeon.oxf.xforms.processor.handlers.XFormsSelect1Handler.end(XForms Select1Handler.java:95) at org.orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerCon troller.java:191) at org.orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContent Handler.java:52) at org.orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterC ontentHandler.java:54) at org.orbeon.oxf.xforms.processor.XFormsToXHTML$4.endElement(XFormsToXHTML .java:390) at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:201) at org.orbeon.oxf.xforms.processor.XFormsToXHTML.outputResponseDocument(XFo rmsToXHTML.java:363) at org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:22 6) at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.j ava:51) at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl(XFormsToXHTML.j ava:80) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :353) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$100(XIncludeP rocessor.java:41) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor$2.read(XIncludeProce ssor.java:85) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI mpl.java:488) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access$200(XIncludeP rocessor.java:41) at org.orbeon.oxf.processor.xinclude.XIncludeProcessor$1.readImpl(XIncludeP rocessor.java:79) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProces sor.java:96) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineP rocessor.java:94) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readI mpl(ConcreteChooseProcessor.java:121) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProces sor.java:96) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineP rocessor.java:94) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor$1.readI mpl(ConcreteChooseProcessor.java:121) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$000(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$2.run(PipelineProces sor.java:96) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$100(PipelineP rocessor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$1.readImpl(PipelineP rocessor.java:94) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1400(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$6.run(PipelineProces sor.java:572) at org.orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java :572) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1500(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput.re adImpl(PipelineProcessor.java:568) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1400(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$6.run(PipelineProces sor.java:572) at org.orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java :572) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.access$1500(Pipeline Processor.java:66) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$InternalTopOutput.re adImpl(PipelineProcessor.java:568) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.pipeline.TeeProcessor.access$000(TeeProcessor.j ava:36) at org.orbeon.oxf.processor.pipeline.TeeProcessor$1.readImpl(TeeProcessor.j ava:59) at org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(Processo rImpl.java:1213) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java :348) at org.orbeon.oxf.processor.ProcessorImpl.readInputAsTinyTree(ProcessorImpl .java:412) at org.orbeon.oxf.processor.ProcessorImpl$5.read(ProcessorImpl.java:445) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI mpl.java:488) at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(Processo rImpl.java:443) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C oncreteChooseProcessor.java:184) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C oncreteChooseProcessor.java:229) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C oncreteChooseProcessor.java:229) at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProce ssor.java:652) at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav a:554) at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces sor.java:649) at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:95) at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:96) at org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.jav a:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.orbeon.oxf.servlet.OPSServlet.service(OPSServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:691) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:469) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:403) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at org.orbeon.oxf.servlet.OPSXFormsFilter.doFilter(OPSXFormsFilter.java:85) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ estFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:691) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:469) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:403) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at com.unifiedpost.um.umadmin.xforms.TestIFrameXForm.executeAction(TestIFra meXForm.java:48) at com.unifiedpost.um.umadmin.xforms.TestIFrameXForm.execute(TestIFrameXFor m.java:27) at com.unifiedpost.um.umadmin.accounts.domain.Admin.accept(Admin.java:41) at com.unifiedpost.um.umadmin.common.actions.UMBaseAction.execute(UMBaseAct ion.java:87) at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAc tion.java:58) at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractE xecuteAction.java:67) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommand Base.java:51) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.jav a:304) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableReq uestProcessor.java:283) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal( CharacterEncodingFilter.java:78) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ estFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 51) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 0) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:685) at java.lang.Thread.run(Thread.java:595) Thanks in advance, Gerrit E-mail disclaimer The information in this e-mail is sent in confidence for the addressee only and may be legally privileged. Unauthorised recipients must preserve this confidentiality and should please advise the sender immediately of the error in transmission and then delete this e-mail. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on its content is prohibited and may be unlawful. Origo Services Limited accepts no responsibility for any loss or damage resulting directly or indirectly from the use of this e-mail or the contents. It is your responsibility to scan for viruses. Origo Services Limited reserves the right to monitor e-mails sent to or from addresses under its control. When you reply to this e-mail, you are consenting to Origo Services Limited monitoring the content of the e-mails you send to or receive from Origo Services Limited. If this e-mail is non-business related Origo Services Limited is not liable for any opinions expressed by the sender. The contents of this e-mail are protected by copyright. All rights reserved. Origo Services Limited is a company incorporated in Scotland (company number 115061) having its registered office at 4th floor, Saltire Court, 20 Castle Terrace, Edinburgh EH1 2EN. -- 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
|
Gerrit,
xforms:copy won't be available in Orbeon Forms 3.6.0. Any taker for implementing xforms:copy? -Erik On Nov 20, 2007, at 3:33 AM, Gerrit Germis wrote: > Hi Dan, > > Thanks for the info. Too bad though. Any chance this will be in 3.6 ? > > Cheers > Gerrit > > > -----Original Message----- > From: Dan Godley [mailto:[hidden email]] > Sent: Tuesday, November 20, 2007 11:23 AM > To: [hidden email] > Subject: RE: [ops-users] copying xml from one instance to another > > Hi Gerrit, > > The last time I looked, xforms:copy hadn't been implemented in Orbeon > Forms yet. > > I think the suggested work-around is to use xforms:insert instead: > http://www.nabble.com/xforms%3Acopy-tf4440626.html#a12669809 > > Cheers, Dan > > Dan Godley > Standards Developer > Origo Services Ltd > > -----Original Message----- > From: Gerrit Germis [mailto:[hidden email]] > Sent: 20 November 2007 09:50 > To: [hidden email] > Subject: [ops-users] copying xml from one instance to another > > Hi all, > > Is it possible to copy a part of an XML instance into another > instance? > I tried something like: > > <xforms:select1 ref="instance('testing')/here" appearance="minimal"> > <xforms:label>Refactoring: </xforms:label> > <xforms:itemset > nodeset="instance('document-instance')/config/refactoring/type"> > <xforms:label ref="@description"/> > <xforms:copy ref="./*"/> > </xforms:itemset> > </xforms:select1> > > But that gives me the error message: > "xforms:itemset element must contain one xforms:value or one > xforms:copy > element." > > Even though there *IS* an xforms:copy tag in the itemset tag! > > Here's the full stack trace for the error message: > > org.orbeon.oxf.common.ValidationException: line 27 of > oxf:/config/xforms-widgets.xsl: xforms:itemset element must contain > one > xforms:value or one xforms:copy element. > oxf:/config/xforms-widgets.xsl, line 27, column -1: xforms:itemset > element must contain one xforms:value or one xforms:copy element. > at > org.orbeon.oxf.xforms.XFormsItemUtils > $2.startElement(XFormsItemUtils.jav > a:276) > at > org.orbeon.oxf.xml.dom4j.Dom4jUtils.visitSubtree(Dom4jUtils.java:599) > at > org > .orbeon.oxf.xforms.XFormsItemUtils.evaluateItemsets(XFormsItemUtils.j > ava:226) > at > org > .orbeon.oxf.xforms.control.controls.XFormsSelect1Control.getItemset(X > FormsSelect1Control.java:70) > at > org > .orbeon.oxf.xforms.processor.handlers.XFormsSelect1Handler.end(XForms > Select1Handler.java:95) > at > org > .orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerCon > troller.java:191) > at > org > .orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContent > Handler.java:52) > at > org > .orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterC > ontentHandler.java:54) > at > org.orbeon.oxf.xforms.processor.XFormsToXHTML > $4.endElement(XFormsToXHTML > .java:390) > at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:201) > at > org > .orbeon.oxf.xforms.processor.XFormsToXHTML.outputResponseDocument(XFo > rmsToXHTML.java:363) > at > org > .orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:22 > 6) > at > org.orbeon.oxf.xforms.processor.XFormsToXHTML.access > $000(XFormsToXHTML.j > ava:51) > at > org.orbeon.oxf.xforms.processor.XFormsToXHTML > $1.readImpl(XFormsToXHTML.j > ava:80) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :353) > at > org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access > $100(XIncludeP > rocessor.java:41) > at > org.orbeon.oxf.processor.xinclude.XIncludeProcessor > $2.read(XIncludeProce > ssor.java:85) > at > org > .orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI > mpl.java:488) > at > org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access > $200(XIncludeP > rocessor.java:41) > at > org.orbeon.oxf.processor.xinclude.XIncludeProcessor > $1.readImpl(XIncludeP > rocessor.java:79) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $000(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $2.run(PipelineProces > sor.java:96) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $100(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $1.readImpl(PipelineP > rocessor.java:94) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor > $1.readI > mpl(ConcreteChooseProcessor.java:121) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $000(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $2.run(PipelineProces > sor.java:96) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $100(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $1.readImpl(PipelineP > rocessor.java:94) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor > $1.readI > mpl(ConcreteChooseProcessor.java:121) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $000(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $2.run(PipelineProces > sor.java:96) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $100(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $1.readImpl(PipelineP > rocessor.java:94) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $1400(Pipeline > Processor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $6.run(PipelineProces > sor.java:572) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java > :572) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $1500(Pipeline > Processor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $InternalTopOutput.re > adImpl(PipelineProcessor.java:568) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $1400(Pipeline > Processor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $6.run(PipelineProces > sor.java:572) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java > :572) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $1500(Pipeline > Processor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $InternalTopOutput.re > adImpl(PipelineProcessor.java:568) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.TeeProcessor.access > $000(TeeProcessor.j > ava:36) > at > org.orbeon.oxf.processor.pipeline.TeeProcessor > $1.readImpl(TeeProcessor.j > ava:59) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsTinyTree(ProcessorImpl > .java:412) > at > org.orbeon.oxf.processor.ProcessorImpl$5.read(ProcessorImpl.java:445) > at > org > .orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI > mpl.java:488) > at > org > .orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(Processo > rImpl.java:443) > at > org > .orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C > oncreteChooseProcessor.java:184) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org > .orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C > oncreteChooseProcessor.java:229) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org > .orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C > oncreteChooseProcessor.java:229) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:95) > at > org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java: > 96) > at > org > .orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.jav > a:148) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at org.orbeon.oxf.servlet.OPSServlet.service(OPSServlet.java:75) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:269) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org > .apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc > her.java:691) > at > org > .apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio > nDispatcher.java:469) > at > org > .apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp > atcher.java:403) > at > org > .apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat > cher.java:301) > at > org.orbeon.oxf.servlet.OPSXFormsFilter.doFilter(OPSXFormsFilter.java: > 85) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:215) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org > .springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ > estFilter.java:72) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:215) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org > .apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc > her.java:691) > at > org > .apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio > nDispatcher.java:469) > at > org > .apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp > atcher.java:403) > at > org > .apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat > cher.java:301) > at > com > .unifiedpost.um.umadmin.xforms.TestIFrameXForm.executeAction(TestIFra > meXForm.java:48) > at > com > .unifiedpost.um.umadmin.xforms.TestIFrameXForm.execute(TestIFrameXFor > m.java:27) > at > com.unifiedpost.um.umadmin.accounts.domain.Admin.accept(Admin.java:41) > at > com > .unifiedpost.um.umadmin.common.actions.UMBaseAction.execute(UMBaseAct > ion.java:87) > at > org > .apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAc > tion.java:58) > at > org > .apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractE > xecuteAction.java:67) > at > org > .apache.struts.chain.commands.ActionCommandBase.execute(ActionCommand > Base.java:51) > at > org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) > at > org > .apache.commons.chain.generic.LookupCommand.execute(LookupCommand.jav > a:304) > at > org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) > at > org > .apache.struts.chain.ComposableRequestProcessor.process(ComposableReq > uestProcessor.java:283) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java: > 1913) > at > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:269) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal > ( > CharacterEncodingFilter.java:78) > at > org > .springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ > estFilter.java:77) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:215) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org > .apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > e.java:210) > at > org > .apache.catalina.core.StandardContextValve.invoke(StandardContextValv > e.java:174) > at > org > .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > :127) > at > org > .apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > :117) > at > org > .apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. > java:108) > at > org > .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 > 51) > at > org > .apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 > 0) > at > org.apache.coyote.http11.Http11BaseProtocol > $Http11ConnectionHandler.proc > essConnection(Http11BaseProtocol.java:665) > at > org > .apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint > .java:528) > at > org > .apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow > erWorkerThread.java:81) > at > org.apache.tomcat.util.threads.ThreadPool > $ControlRunnable.run(ThreadPool > .java:685) > at java.lang.Thread.run(Thread.java:595) > > > > Thanks in advance, > Gerrit > > E-mail disclaimer > > The information in this e-mail is sent in confidence for the addressee > only and may be legally privileged. Unauthorised recipients must > preserve this confidentiality and should please advise the sender > immediately of the error in transmission and then delete this e- > mail. If > you are not the intended recipient, any disclosure, copying, > distribution or any action taken in reliance on its content is > prohibited and may be unlawful. > > Origo Services Limited accepts no responsibility for any loss or > damage > resulting directly or indirectly from the use of this e-mail or the > contents. It is your responsibility to scan for viruses. Origo > Services Limited reserves the right to monitor e-mails sent to or from > addresses under its control. When you reply to this e-mail, you are > consenting to Origo Services Limited monitoring the content of the > e-mails you send to or receive from Origo Services Limited. If this > e-mail is non-business related Origo Services Limited is not liable > for > any opinions expressed by the sender. The contents of this e-mail are > protected by copyright. All rights reserved. > > Origo Services Limited is a company incorporated in Scotland (company > number 115061) having its registered office at 4th floor, Saltire > Court, > 20 Castle Terrace, Edinburgh EH1 2EN. > > > -- > 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 |
Administrator
|
In reply to this post by Gerrit Germis-2
Gerrit,
xforms:copy won't be available in Orbeon Forms 3.6.0. Any taker for implementing xforms:copy? -Erik On Nov 20, 2007, at 3:33 AM, Gerrit Germis wrote: > Hi Dan, > > Thanks for the info. Too bad though. Any chance this will be in 3.6 ? > > Cheers > Gerrit > > > -----Original Message----- > From: Dan Godley [mailto:[hidden email]] > Sent: Tuesday, November 20, 2007 11:23 AM > To: [hidden email] > Subject: RE: [ops-users] copying xml from one instance to another > > Hi Gerrit, > > The last time I looked, xforms:copy hadn't been implemented in Orbeon > Forms yet. > > I think the suggested work-around is to use xforms:insert instead: > http://www.nabble.com/xforms%3Acopy-tf4440626.html#a12669809 > > Cheers, Dan > > Dan Godley > Standards Developer > Origo Services Ltd > > -----Original Message----- > From: Gerrit Germis [mailto:[hidden email]] > Sent: 20 November 2007 09:50 > To: [hidden email] > Subject: [ops-users] copying xml from one instance to another > > Hi all, > > Is it possible to copy a part of an XML instance into another > instance? > I tried something like: > > <xforms:select1 ref="instance('testing')/here" appearance="minimal"> > <xforms:label>Refactoring: </xforms:label> > <xforms:itemset > nodeset="instance('document-instance')/config/refactoring/type"> > <xforms:label ref="@description"/> > <xforms:copy ref="./*"/> > </xforms:itemset> > </xforms:select1> > > But that gives me the error message: > "xforms:itemset element must contain one xforms:value or one > xforms:copy > element." > > Even though there *IS* an xforms:copy tag in the itemset tag! > > Here's the full stack trace for the error message: > > org.orbeon.oxf.common.ValidationException: line 27 of > oxf:/config/xforms-widgets.xsl: xforms:itemset element must contain > one > xforms:value or one xforms:copy element. > oxf:/config/xforms-widgets.xsl, line 27, column -1: xforms:itemset > element must contain one xforms:value or one xforms:copy element. > at > org.orbeon.oxf.xforms.XFormsItemUtils > $2.startElement(XFormsItemUtils.jav > a:276) > at > org.orbeon.oxf.xml.dom4j.Dom4jUtils.visitSubtree(Dom4jUtils.java:599) > at > org > .orbeon.oxf.xforms.XFormsItemUtils.evaluateItemsets(XFormsItemUtils.j > ava:226) > at > org > .orbeon.oxf.xforms.control.controls.XFormsSelect1Control.getItemset(X > FormsSelect1Control.java:70) > at > org > .orbeon.oxf.xforms.processor.handlers.XFormsSelect1Handler.end(XForms > Select1Handler.java:95) > at > org > .orbeon.oxf.xml.ElementHandlerController.endElement(ElementHandlerCon > troller.java:191) > at > org > .orbeon.oxf.xml.ForwardingContentHandler.endElement(ForwardingContent > Handler.java:52) > at > org > .orbeon.oxf.xml.ElementFilterContentHandler.endElement(ElementFilterC > ontentHandler.java:54) > at > org.orbeon.oxf.xforms.processor.XFormsToXHTML > $4.endElement(XFormsToXHTML > .java:390) > at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:201) > at > org > .orbeon.oxf.xforms.processor.XFormsToXHTML.outputResponseDocument(XFo > rmsToXHTML.java:363) > at > org > .orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:22 > 6) > at > org.orbeon.oxf.xforms.processor.XFormsToXHTML.access > $000(XFormsToXHTML.j > ava:51) > at > org.orbeon.oxf.xforms.processor.XFormsToXHTML > $1.readImpl(XFormsToXHTML.j > ava:80) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :353) > at > org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access > $100(XIncludeP > rocessor.java:41) > at > org.orbeon.oxf.processor.xinclude.XIncludeProcessor > $2.read(XIncludeProce > ssor.java:85) > at > org > .orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI > mpl.java:488) > at > org.orbeon.oxf.processor.xinclude.XIncludeProcessor.access > $200(XIncludeP > rocessor.java:41) > at > org.orbeon.oxf.processor.xinclude.XIncludeProcessor > $1.readImpl(XIncludeP > rocessor.java:79) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $000(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $2.run(PipelineProces > sor.java:96) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $100(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $1.readImpl(PipelineP > rocessor.java:94) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor > $1.readI > mpl(ConcreteChooseProcessor.java:121) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $000(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $2.run(PipelineProces > sor.java:96) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $100(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $1.readImpl(PipelineP > rocessor.java:94) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor > $1.readI > mpl(ConcreteChooseProcessor.java:121) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $000(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $2.run(PipelineProces > sor.java:96) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $100(PipelineP > rocessor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $1.readImpl(PipelineP > rocessor.java:94) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $1400(Pipeline > Processor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $6.run(PipelineProces > sor.java:572) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java > :572) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $1500(Pipeline > Processor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $InternalTopOutput.re > adImpl(PipelineProcessor.java:568) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $1400(Pipeline > Processor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $6.run(PipelineProces > sor.java:572) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeParents(ProcessorImpl.java > :572) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor.access > $1500(Pipeline > Processor.java:66) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $InternalTopOutput.re > adImpl(PipelineProcessor.java:568) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org.orbeon.oxf.processor.pipeline.TeeProcessor.access > $000(TeeProcessor.j > ava:36) > at > org.orbeon.oxf.processor.pipeline.TeeProcessor > $1.readImpl(TeeProcessor.j > ava:59) > at > org.orbeon.oxf.processor.ProcessorImpl$7.read(ProcessorImpl.java:1030) > at > org.orbeon.oxf.processor.ProcessorImpl > $ProcessorOutputImpl.read(Processo > rImpl.java:1213) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java > :348) > at > org > .orbeon.oxf.processor.ProcessorImpl.readInputAsTinyTree(ProcessorImpl > .java:412) > at > org.orbeon.oxf.processor.ProcessorImpl$5.read(ProcessorImpl.java:445) > at > org > .orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorI > mpl.java:488) > at > org > .orbeon.oxf.processor.ProcessorImpl.readCacheInputAsTinyTree(Processo > rImpl.java:443) > at > org > .orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C > oncreteChooseProcessor.java:184) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org > .orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C > oncreteChooseProcessor.java:229) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org > .orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(C > oncreteChooseProcessor.java:229) > at > org.orbeon.oxf.processor.pipeline.PipelineProcessor > $11.run(PipelineProce > ssor.java:652) > at > org > .orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.jav > a:554) > at > org > .orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProces > sor.java:649) > at > org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:95) > at > org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java: > 96) > at > org > .orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.jav > a:148) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at org.orbeon.oxf.servlet.OPSServlet.service(OPSServlet.java:75) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:269) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org > .apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc > her.java:691) > at > org > .apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio > nDispatcher.java:469) > at > org > .apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp > atcher.java:403) > at > org > .apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat > cher.java:301) > at > org.orbeon.oxf.servlet.OPSXFormsFilter.doFilter(OPSXFormsFilter.java: > 85) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:215) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org > .springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ > estFilter.java:72) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:215) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org > .apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc > her.java:691) > at > org > .apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio > nDispatcher.java:469) > at > org > .apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp > atcher.java:403) > at > org > .apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat > cher.java:301) > at > com > .unifiedpost.um.umadmin.xforms.TestIFrameXForm.executeAction(TestIFra > meXForm.java:48) > at > com > .unifiedpost.um.umadmin.xforms.TestIFrameXForm.execute(TestIFrameXFor > m.java:27) > at > com.unifiedpost.um.umadmin.accounts.domain.Admin.accept(Admin.java:41) > at > com > .unifiedpost.um.umadmin.common.actions.UMBaseAction.execute(UMBaseAct > ion.java:87) > at > org > .apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAc > tion.java:58) > at > org > .apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractE > xecuteAction.java:67) > at > org > .apache.struts.chain.commands.ActionCommandBase.execute(ActionCommand > Base.java:51) > at > org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) > at > org > .apache.commons.chain.generic.LookupCommand.execute(LookupCommand.jav > a:304) > at > org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) > at > org > .apache.struts.chain.ComposableRequestProcessor.process(ComposableReq > uestProcessor.java:283) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java: > 1913) > at > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:269) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal > ( > CharacterEncodingFilter.java:78) > at > org > .springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ > estFilter.java:77) > at > org > .apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > tionFilterChain.java:215) > at > org > .apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > erChain.java:188) > at > org > .apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > e.java:210) > at > org > .apache.catalina.core.StandardContextValve.invoke(StandardContextValv > e.java:174) > at > org > .apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > :127) > at > org > .apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > :117) > at > org > .apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. > java:108) > at > org > .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 > 51) > at > org > .apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 > 0) > at > org.apache.coyote.http11.Http11BaseProtocol > $Http11ConnectionHandler.proc > essConnection(Http11BaseProtocol.java:665) > at > org > .apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint > .java:528) > at > org > .apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow > erWorkerThread.java:81) > at > org.apache.tomcat.util.threads.ThreadPool > $ControlRunnable.run(ThreadPool > .java:685) > at java.lang.Thread.run(Thread.java:595) > > > > Thanks in advance, > Gerrit > > E-mail disclaimer > > The information in this e-mail is sent in confidence for the addressee > only and may be legally privileged. Unauthorised recipients must > preserve this confidentiality and should please advise the sender > immediately of the error in transmission and then delete this e- > mail. If > you are not the intended recipient, any disclosure, copying, > distribution or any action taken in reliance on its content is > prohibited and may be unlawful. > > Origo Services Limited accepts no responsibility for any loss or > damage > resulting directly or indirectly from the use of this e-mail or the > contents. It is your responsibility to scan for viruses. Origo > Services Limited reserves the right to monitor e-mails sent to or from > addresses under its control. When you reply to this e-mail, you are > consenting to Origo Services Limited monitoring the content of the > e-mails you send to or receive from Origo Services Limited. If this > e-mail is non-business related Origo Services Limited is not liable > for > any opinions expressed by the sender. The contents of this e-mail are > protected by copyright. All rights reserved. > > Origo Services Limited is a company incorporated in Scotland (company > number 115061) having its registered office at 4th floor, Saltire > Court, > 20 Castle Terrace, Edinburgh EH1 2EN. > > > -- > 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 |
Did the xforms:copy get put into 3.6? I just tried it and it is giving
me an error. If so, any examples available? Thanks, Rick -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: Tuesday, November 20, 2007 2:30 PM To: [hidden email] Subject: Re: [ops-users] copying xml from one instance to another Gerrit, xforms:copy won't be available in Orbeon Forms 3.6.0. Any taker for implementing xforms:copy? -Erik On Nov 20, 2007, at 3:33 AM, Gerrit Germis wrote: > Hi Dan, > > Thanks for the info. Too bad though. Any chance this will be in 3.6 ? > > Cheers > Gerrit > > > -----Original Message----- > From: Dan Godley [mailto:[hidden email]] > Sent: Tuesday, November 20, 2007 11:23 AM > To: [hidden email] > Subject: RE: [ops-users] copying xml from one instance to another > > Hi Gerrit, > > The last time I looked, xforms:copy hadn't been implemented in Orbeon > Forms yet. > > I think the suggested work-around is to use xforms:insert instead: > http://www.nabble.com/xforms%3Acopy-tf4440626.html#a12669809 > > Cheers, Dan > -- 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
|
Rick,
On Jan 16, 2008 10:32 PM, Rick Geneva <[hidden email]> wrote: > Did the xforms:copy get put into 3.6? I just tried it and it is giving > me an error. If so, any examples available? The xforms:copy isn't in 3.6 or in the nightly builds. Do you have a suitable workaround for this? If not, let us know and we might be able to help with that. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise 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 |
In reply to this post by Erik Bruchez
Hi,
I am writing a custom processor in Java. I need to do an xpath 2 on the instance. How can I do that? I tried Document instance = readInputAsDOM4J(context, "instance"); String test = instance.selectSingleNode("string(max(/model/proposal/cpfData/consortium/participant/participantOrder)+1)").getText(); But this is not working, I get an error about sum not being defined. I suppose this is because the selectSingleNode is using XPath 1. What can I do to be able to use Xpath 2? Thx Antoine -- 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
|
Antoine,
That's fairly easy: use our XPathCache class, which has a number of methods to evaluate XPath 2.0 expressions. You can see a version of that class here: http://tinyurl.com/2ofzm6 Note that it seems that the anonymous CVS doesn't seem to be 100% up to date, please let us know if you have any issues getting to recent source code. -Erik On Mar 12, 2008, at 7:53 AM, <Antoine.DE- [hidden email]> <[hidden email] > wrote: > Hi, > > I am writing a custom processor in Java. > I need to do an xpath 2 on the instance. > How can I do that? > > I tried > > Document instance = readInputAsDOM4J(context, "instance"); > String test = instance.selectSingleNode("string(max(/model/proposal/ > cpfData/consortium/participant/participantOrder)+1)").getText(); > > But this is not working, I get an error about sum not being defined. > I suppose this is because the selectSingleNode is using XPath 1. > > What can I do to be able to use Xpath 2? > > Thx > > Antoine > > -- > 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 |