« Return to Thread: XUpdate extensions or XUpdate document

Re: XUpdate extensions or XUpdate document

by Adam Retter-3 :: Rate this Message:

Reply to Author | View in Thread

Its really about how you are parsing the response from the form used
to update the data and how you wish to do this, i.e. if I was asking
the question between these two scenarios -

1) How easy is it to parse/transform the html form name=value into an
XUpdate document

2) How easy is it to parse/transform the html form name=value into
XQuery update statements

I have written systems for both scenarios.

In (1) we had a naming convention for our html form elements that was
the XPath of the nodes in the documents with "/" mapped to and from
"_" for the sake of HTML correctness. This was fairly easy, pull out
the XPaths and values and build an XUpdate document in an XQuery and
then execute it against the appropriate collection.

In (2) we had a huge load of nexted if, if else, else statements in an
XQuery that acted on the name=value pairs to determine whether to
update the value, remove the node, or create the node with value.

Thanks Adam.

2008/5/14 Vanya, Scott <Scott.Vanya@...>:

> Sorry, for my confusion, Adam.
>
>  Here's the scenario:  There will be approximately 50 users on a local
>  wireless eXist web app. The same xql will serve customized content to
>  each of the users. And on that page continuously throughout the day they
>  will be entering small amounts of data (less than 100-200 characters) to
>  update their own xml files. Do you have a recommendation for this
>  scenario (i.e. does one show better performance)?
>
>  I appreciate your help.
>
>
>  scott
>
>  -----Original Message-----
>  From: Adam Retter [mailto:adam@...]
>
>
> Sent: Wednesday, May 14, 2008 9:18 AM
>  To: Vanya, Scott
>  Cc: exist-open@...
>  Subject: Re: [Exist-open] XUpdate extensions or XUpdate document
>
>  XQuery Update Extensions is the more recent development but they are two
>  quite different systems for doing stuff.
>
>  2008/5/14 Vanya, Scott <Scott.Vanya@...>:
>  > As eXist moves forward will one supersede the other or are both
>  > features  going to be kept?
>  >
>  >  scott
>  >
>  >
>  >
>  >
>  >  -----Original Message-----
>  >  From: Adam Retter [mailto:adam@...]
>  >  Sent: Wednesday, May 14, 2008 9:03 AM
>  >  To: Vanya, Scott
>  >  Cc: exist-open@...
>  >  Subject: Re: [Exist-open] XUpdate extensions or XUpdate document
>  >
>  >  Erm really its a matter of preference and which is the better fit for
>
>  > your application
>  >
>  >  2008/5/14 Vanya, Scott <Scott.Vanya@...>:
>  >  >
>  >  >
>  >  > I have a xquery page that I am using to collect data. Is it better
>  > to  > to make the update to the db using an XUpdate document or the
>  > XUpdate  > extensions with the parameters collected on the page?
>  >  >
>  >  > Thanks.
>  >  >
>  >  > scott
>  >  >
>  > ----------------------------------------------------------------------
>  >  > ---  This SF.net email is sponsored by: Microsoft  Defy all  >
>  > challenges. Microsoft(R) Visual Studio 2008.
>  >  >  http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  >  > _______________________________________________
>  >  >  Exist-open mailing list
>  >  >  Exist-open@...
>  >  >  https://lists.sourceforge.net/lists/listinfo/exist-open
>  >  >
>  >  >
>  >
>  >
>  >
>  >  --
>  >  Adam Retter
>  >
>  >  eXist Developer
>  >  { England }
>  >  adam@...
>  >  irc://irc.freenode.net/existdb
>  >
>
>
>
>  --
>  Adam Retter
>
>  eXist Developer
>  { England }
>  adam@...
>  irc://irc.freenode.net/existdb
>



--
Adam Retter

eXist Developer
{ England }
adam@...
irc://irc.freenode.net/existdb

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

 « Return to Thread: XUpdate extensions or XUpdate document