From: Adam R. <ada...@de...> - 2006-06-08 08:53:19
|
> Hello guys, > I need to be able to include xml chunks from several > entity xml files > into a a master one that is supposed to be shown to > users. eXist has some support for XInclude, although I have never used it so I cannot provide any guidance here. Perhaps a search of the mailing list would reveal more... > Those users should be able to edit the final xml > file > but when doing > so they should be actually updating the chunks. > > With an example: > > books.xml > -------------- > <books > <book isbn="foo" author="bar"/ > ..... > </books > > bookstores.xml > --------------------- > <bookstores > <bookstore > <book isbn="foo" author="bar"/ > ........... > </bookstore > </bookstores > > libraries.xml > --------------------- > <libraries > <library > <book isbn="foo" author="bar"/ > ........... > </library > </libraries > or <libraries > > A given user updating now libraries realize the > author > for isbn "foo" > is not "bar" but "xar" so whenever he updates > libraries he should > actually be updating books.xml. > I am just trying to reuse any work already done > about > this problem. I > can use XInclude to get the books chunks into the > libraries and > bookstores files. I can use XSLT to present a pretty > form to the user > and then whenever the user hits submit for a change > I > can use XUpdate (As far as I have read eXist > implemented an enhancement to XQuery in order to avoid > XUpdate, so then XQuery will work as well) > if I maintain somewhere the XInclude rules just to > know what to update > but too much custom code for something that maybe is > already > integrated in eXist or is part of a solution based > on > eXist. I suspect that some XQuery or Java code would be needed on your part. > Generation of the GUI to edit should be done using a > W3C schema and I > am wondering if something is not also built within > eXist for this > matter. Chiba has a facility for generating XForms from Schema, I have not used this yet, but presumably it could submit a xml document back to eXist that could be stored or used to update an existing document. Otherwise custom Web GUI's are easy to put together with eXist and XQuery/XSLT. > Could anyone point me to a good direction here? > > Any help highly appeciated. Thanks to you all, > Nestor Urquiza > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open -- Adam Retter Devon Portal Developer Devon Portal Project County Hall Exeter Devon EX2 4QD t: 01392 38 3683 f: 01392 38 2966 e: ada...@de... w: http://www.devonline.gov.uk |