From: Alfredo C. <alf...@gm...> - 2021-07-25 09:55:16
|
Hi Jean-Paul, I'm trying to merge the pieces on an "in memory" document then to store the result in a new document. But this logic can change if there is a better way. Thanks, Alfredo Il giorno sab 24 lug 2021 alle ore 19:16 Jean-Paul Rehr <re...@gm...> ha scritto: > Alfredo, are you creating a TEI document in memory, or are you trying to > insert these into an existing document stored in eXist-db? > > JPR > > On Sat, Jul 24, 2021 at 7:04 PM Alfredo Cosco <alf...@gm...> > wrote: > >> Hi all, >> I'm working on eXist 4.7 >> The problem is: >> >> I have tre variables with XML code: >> >> let $var1 := <fileDesc> >> <sourceDesc> >> <msDesc> >> <physDesc> >> <objectDesc form=""/> >> </physDesc> >> </msDesc> >> </sourceDesc> >> </fileDesc> >> >> >> let var2 := <fileDesc> >> <sourceDesc> >> <msDesc> >> <msIdentifier> >> <idno/> >> </msIdentifier> >> </msDesc> >> </sourceDesc> >> </fileDesc> >> >> let var3 := <fileDesc> >> <titleStmt> >> <title/> >> </titleStmt> >> </fileDesc> >> >> How can I merge there 3 snapshots and obtain something like: >> >> <fileDesc> >> <titleStmt> >> <title/> >> </titleStmt> >> <sourceDesc> >> <msDesc> >> <physDesc> >> <objectDesc form=""/> >> </physDesc> >> <msIdentifier> >> <idno/> >> </msIdentifier> >> </msDesc> >> </sourceDesc> >> </fileDesc> >> >> >> Thanks, >> Alfredo >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > |