[ops] XIncluding chunks, XUpdating or XQuerying them later

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[ops] XIncluding chunks, XUpdating or XQuerying them later

Nestor Urquiza
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.

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 (Or if I decide let us say to host my xml files in an
eXist Native Database  I could use its  enhancement to XQuery)
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 Orbeon Presentation Server or is part of a solution based
on
it.

Generation of the GUI to edit should be done using a
W3C schema and as far as I have read seems like OPS have done a lot of
work about this.

Could anyone point me to a good direction here?

Any help highly appeciated. Thanks to you all,
Nestor Urquiza



--
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
Reply | Threaded
Open this post in threaded view
|

Re: [ops] XIncluding chunks, XUpdating or XQuerying them later

Alessandro  Vernet
Administrator
Hi Nestor,

On 6/11/06, Nestor Urquiza <[hidden email]> wrote:
> 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.

If the author for a book changes, and you want to update the book
information in a number of documents in the database (books,
bookstores, and libraries XML documents), it makes sense to use
whatever facility is provided by the database to update this
information in the database. With eXist that will mean using the
update extensions for XQuery.

If the documents you update are large documents, I would not recommend
retrieving them and updating them with XSLT or XUpdate in
PresentationServer.

http://exist.sourceforge.net/update_ext.html

> Generation of the GUI to edit should be done using a
> W3C schema and as far as I have read seems like OPS have done a lot of
> work about this.

People have been developing solutions on top of PresentationServer to
generate UIs from schemas, but those solutions are generally designed
to handle very well a particular situation and are hard to reuse.

Alex
--
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