OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] RESTful operations on document fragments

On 23/02/2008, Simon St.Laurent <simonstl@simonstl.com> wrote:
> Anne Thomas Manes wrote:
>  > You could always add an abstraction layer that maps URLs (resources)
>  > to document fragments. In your Bible example, you could define a
>  > resource for each verse in the document. Therefore you can PUT an
>  > updated verse, and a bit of code would then update the appropriate
>  > document fragment.
> I can always create abstraction layer upon abstraction layer.  They make
>  pretty piles, until they fall over.

How about creating a servlet called something like update, then map
all urls to it:


the call it using the path of the XML that you want to update:


the update servlet will know what needs to be updated based on the url.

A couple of large caveats - I'm not sure if that's even possible
(haven't worked in that area very much) or if that's considered
restful (ditto).

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS