Hi every one Can some one help me on how to use the processor xupdate, my xpl file is the following : <?xml version="1.0" encoding="iso-8859-1"?> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <p:param type="input" name="instance"/> <p:param type="output" name="data"/> <p:processor name="oxf:xupdate"> <p:input name="data" href="#instance" /> <p:input name="config"> <xu:modifications xmlns:xu="http://www.xmldb.org/xupdate"> <xu:update select="/form/infos-client/cat"> <xu:value-of select="doc('input:instance')/form/cat"/> </xu:update> <xu:update select="/form/infos-client/numadh"> <xu:value-of select="doc('input:instance')/form/numadh"/> </xu:update> </xu:modifications> </p:input> <p:output name="data" id="new-instance" ref="data" /> </p:processor> </p:config> But always i have the following error : Cannot find input "instance" Thanks in advance. -- ZENOUAKI Rachid Ingénieur d'Etat EHTP 2008 Archos-conseil (Groupe ONA) Tel : +21270518582 -- 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,
i suppose the error is caused by these two lines; > <xu:value-of select="doc('input:instance')/form/cat"/> (...) > <xu:value-of select="doc('input:instance')/form/numadh"/> There's no need to use the doc() function, try the direct XPath instead: <xu:value-of select="/form/cat"/> <xu:value-of select="/form/numadh"/> (i didn't test it...) HTH florian -- 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
I deleted the doc() function, but always the same problem : "Pipeline input "instance" is not connected". Any idea ? -- ZENOUAKI Rachid Ingénieur d'Etat EHTP 2008 Archos-conseil (Groupe ONA) Tel : +21270518582 -- 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 RachidEHTP
You have me feeling guilty, I should feel more urgency ;) Not certain that I can help, but I have used xupdate with Exist, but probably should migrate to XQuery Update facility: http://exist-db.org/update_ext.html I can only offer that I create a fairly crude append node and it is working so far. Here is the edited xpl, best I can offer. --Hank <!-- Copy the update into an append node --> <p:processor name="oxf:xslt"> <p:input name="data" href="#instance" /> <p:input name="config"> <xsl:stylesheet version="2.0"> <xsl:template match="/"> <xu:modifications version="1.0" xmlns:xu="http:// www.xmldb.org/xupdate"> <xu:append select="/changes"> <xsl:apply-templates/> </xu:append> </xu:modifications> </xsl:template> <!-- Copies nodes --> <xsl:template match="*"> <xsl:element name="{local-name()}"> <xsl:apply-templates/> </xsl:element> </xsl:template> </xsl:stylesheet> </p:input> <p:output name="data" id="query"/> </p:processor> <!-- Call eXist REST API --> <p:processor name="oxf:xforms-submission" > <p:input name="submission" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <xforms:submission method="post" action="http://db.example.org/exist/rest/db/my.xml" /> </p:input> <p:input name="request" href="#query" /> <p:output name="response" id="response" /> </p:processor> On Apr 21, 2008, at 11:32 AM, ZENOUAKI rachid wrote: > > Hi every one > > Can some one help me on how to use the processor xupdate, my xpl > file is the following : > > <?xml version="1.0" encoding="iso-8859-1"?> > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" > xmlns:oxf="http://www.orbeon.com/oxf/processors" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xs="http://www.w3.org/2001/XMLSchema"> > > <p:param type="input" name="instance"/> > <p:param type="output" name="data"/> > > <p:processor name="oxf:xupdate"> > <p:input name="data" href="#instance" /> > <p:input name="config"> > <xu:modifications xmlns:xu="http://www.xmldb.org/ > xupdate"> > <xu:update select="/form/infos-client/cat"> > <xu:value-of select="doc('input:instance')/ > form/cat"/> > </xu:update> > <xu:update select="/form/infos-client/numadh"> > <xu:value-of select="doc('input:instance')/ > form/numadh"/> > </xu:update> > </xu:modifications> > </p:input> > <p:output name="data" id="new-instance" ref="data" /> > </p:processor> > </p:config> > > But always i have the following error : Cannot find input "instance" > > Thanks in advance. > > > -- > ZENOUAKI Rachid > Ingénieur d'Etat EHTP 2008 > Archos-conseil (Groupe ONA) > Tel : +21270518582 > > -- > 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 NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- 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 |