Hi everyone,
I got a problem with the oxf:xmldb-update processor. I must update a document into an exist database but I have the following exception: org.exist.EXistException: No namespace defined for prefix ani. The root document to save has a namespace and it seems it must be declared to eXist. Just like on reading where I use the 'declare namespace' XQuery command but I don't know what to do with the xmldb-update processor. The xmldb website seems like it was taken over, the draft is supposed to be located at http://www.xmldb.org/xapi/xapi-draft.html but its helpless.. Is that why in the OPS 'DMV Forms' example, the document to save is wrapped inside a 'document' tag having an 'id' child with no namespace? Was it a tweak? Thanks for the help, Jimmy -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Just for the record, I did succeed to update the eXist database. I
wrapped the namespaced document into a non namespaced root. Just like the DMV forms example. It works but I don't like the solution. I'm curious though if it is possible to update with XQuery, I tried but was unsuccessful (with the 'update insert' command as example). Or maybe the xmldb-update processor support a way to pass namespace to eXist? Regards, Jimmy Jimmy Royer wrote: > Hi everyone, > > I got a problem with the oxf:xmldb-update processor. I must update a > document into an exist database > but I have the following exception: > > org.exist.EXistException: No namespace defined for prefix ani. > > The root document to save has a namespace and it seems it must be > declared to eXist. Just like on reading > where I use the 'declare namespace' XQuery command but I don't know > what to do with the xmldb-update > processor. > > The xmldb website seems like it was taken over, the draft is supposed > to be located at > http://www.xmldb.org/xapi/xapi-draft.html but its helpless.. > > Is that why in the OPS 'DMV Forms' example, the document to save is > wrapped inside a 'document' tag > having an 'id' child with no namespace? Was it a tweak? > > Thanks for the help, > Jimmy > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Jimmy Royer
Hi Jimmy,
Are you saying that when you store a document in eXist that looks like: <root xmlns="http://www.gaga.com/"> <content/> </root> Then what is actually stored by eXist is: <root> <content/> </root> If this is the case, could you quote the piece of XPL that you use to store the document? Alex On 6/15/06, Jimmy Royer <[hidden email]> wrote: > Hi everyone, > > I got a problem with the oxf:xmldb-update processor. I must update a > document into an exist database > but I have the following exception: > > org.exist.EXistException: No namespace defined for prefix ani. > > The root document to save has a namespace and it seems it must be > declared to eXist. Just like on reading > where I use the 'declare namespace' XQuery command but I don't know what > to do with the xmldb-update > processor. > > The xmldb website seems like it was taken over, the draft is supposed to > be located at > http://www.xmldb.org/xapi/xapi-draft.html but its helpless.. > > Is that why in the OPS 'DMV Forms' example, the document to save is > wrapped inside a 'document' tag > having an 'id' child with no namespace? Was it a tweak? > > Thanks for the help, > Jimmy > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |