From: Adam R. <ad...@ex...> - 2008-11-13 22:30:10
|
I would start with a document that you can post to Atom, once you have that correctly storing the document in eXist, then I will be happy to help you craft an XForm to do the same. 2008/11/13 Fraser Hore <fra...@gm...>: > Hi, thanks for your response. > > My problem is getting an xform to post a feed or entry to the eXist atompub > server. I have tried many URLs in the submission (both in the depreciated > "action" attribute and in the "resource" element) and nothing is creating a > .feed.atom document in eXist. > > Does anyone have an example of an xforms submission that correctly creates > an atom feed document? > > Thanks! > > Fraser > > On Thu, Nov 13, 2008 at 3:58 AM, Alister Pillow <gsp...@gm...> > wrote: >> >> Hi, >> What are the symptoms of your trouble? Are they related to the Atompub, >> xforms or something else? >> Have you tried the examples here: >> http://en.wikibooks.org/wiki/XForms/eXist >> >> Your submission element doesn't have an action attribute, so it will be >> sent back to the page it came from. Is that what you want? >> >> On 13/11/2008, at 1:37 AM, Fraser Hore wrote: >> >>> Hi, >>> >>> I'm having trouble posting a feed or entry to exist using an xform and >>> with the atompub module enabled. >>> >>> I'm using the folowing model: >>> >>> <xf:model id="Atom"> >>> <xf:instance xmlns="http://www.w3.org/2005/Atom" >>> id="atomFeed"> >>> <feed xmlns="http://www.w3.org/2005/Atom"> >>> <title>All Users</title> >>> </feed> >>> </xf:instance> >>> <xf:submission id="save" replace="instance" >>> ref="instance('atomFeed')" >>> method="post" mediatype="application/atom+xml"> >>> <xf:resource value="/atom/edit/feed"/> >>> </xf:submission> >>> </xf:model> >>> >>> I'd be grateful for any suggestions for how I can get this to work. >>> >>> Thanks! >>> >>> Fraser >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win great >>> prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the >>> world >>> >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ >>> Exist-open mailing list >>> Exi...@li... >>> https://lists.sourceforge.net/lists/listinfo/exist-open >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > -- Adam Retter eXist Developer { England } ad...@ex... irc://irc.freenode.net/existdb |