Hey all,
I have a small orbeon form that stores "dictionary Entries" in eXist.
Every file i stored like {$id.xml}...Everything is working fine but I can´t update the file because my xquery seems to be wrong =(
An entry looks like this:
<entry singleWordOrPhrase="sw">
<id>1</id>
<lemma>here comes the word</lemma>
<meaning>
</meaning>
</entry>
My xquery:
let $my-doc := request:get-data()
(:the updated data comes from my form I´ve checked, it´s what I need:)
let $updateFilePath := '/db/dictionary/data/'
let $updateFile := concat($updateFilePath, $my-doc/entry/id,".xml")
(:this is working, too...when I print it out I can see the correct path...:)
let $test2 := update replace doc($updateFile)/entry/id with ($my-doc)
(:THIS IS MY PROBLEM, I Can´t write doc($updateFile)/entry :)
I don´t know what to do...
When I write doc($updateFile)/entry/id then my new data is copied into the id tag, of course...=(
When I write doc($updateFile)/entry/lemma then my new data is copied into the lemma tag, of course...=(
But when I write doc($updateFile)/entry --> error, nothing happens =(
But when I write doc($updateFile) --> error, nothing happens =(
I just want to copy the new data and replace all data...
Can someone help me?
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at
http://www.sourceforge.net/community/cca08_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open