XForms and eXist: A Perfect Couple
Upcoming SlideShare
Loading in...5
×
 

XForms and eXist: A Perfect Couple

on

  • 127,244 views

These are the slides I presented on December 3, 2007 at the XForms Evening / XML 2007 event in Boston.

These are the slides I presented on December 3, 2007 at the XForms Evening / XML 2007 event in Boston.

Statistics

Views

Total Views
127,244
Views on SlideShare
127,207
Embed Views
37

Actions

Likes
3
Downloads
141
Comments
5

4 Embeds 37

http://www.slideshare.net 33
http://www.filescon.com 2
http://www.oplahol.com 1
http://www.slashdocs.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • slow
    Are you sure you want to
    Your message goes here
    Processing…
  • Didn't understand completely.....
    Are you sure you want to
    Your message goes here
    Processing…
  • looks awesome!
    Are you sure you want to
    Your message goes here
    Processing…
  • From the presentation, I couldn't agree more that Xforms simplifies the CRUD process thus simplifies coding altogether. Bravo!

    --
    Visit my blog at http://ariffshah.com
    Are you sure you want to
    Your message goes here
    Processing…
  • Is there any php interface for eXist? --- http://movieteka.org
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

XForms and eXist: A Perfect Couple XForms and eXist: A Perfect Couple Presentation Transcript

  • XForms and eXist A perfect couple Erik Bruchez ebruchez@orbeon.com
  • A demo
  • XForms • Represents form data as XML • But how do you persist it?
  • XForms Persistence There is no such thing!
  • <xforms:submission> • Allows XForms to “talk” to the world • Fully supports REST in XForms 1.1
  • REST • Using HTTP the way it was meant to be • Identify resources with URIs • Methods: GET, PUT, DELETE, POST
  • Traditionally • UI written with Java, Ruby, ... • Data captured as objects • Relational database • O-R mapping to bridge the gap
  • Issues • Middleware to do the mapping • More software
  • What about XForms? • Implement a REST service • XML-relational mapping • Or store in BLOB columns
  • Is there a better way?
  • eXist • Native XML database • Open source • XQuery • REST API
  • 2+2=?
  • Perfect Match • XML • REST
  • No need for a middle man!
  • GET <xforms:submission serialization=”none” method=”get” action=”http://localhost/exist/db/docs/form1.xml” replace=”instance” instance=”form-instance”/>
  • PUT <xforms:submission ref=”instance(‘form-instance’)” method=”put” action=”http://localhost/exist/db/docs/form1.xml” replace=”none”/>
  • DELETE <xforms:submission serialization=”none” method=”delete” action=”http://localhost/exist/db/docs/form1.xml” replace=”none”/>
  • POST <xforms:submission ref=”instance(‘search-query’)” method=”post” action=”http://localhost:8080/exist/db/docs/” replace=”instance” instance=”query-results”/>
  • XQuery <xforms:instance id=”search-query”> <exist:query> <exist:text> xquery version quot;1.0quot;; <documents>{ for ... return ... }</documents> </exist:text> </exist:query> </xforms:instance>
  • Using XQuery results • Output values with <xforms:output> • Iterate with <xforms:repeat>
  • Conclusion Using XForms and eXist allows you to do all the Create/Read/Update/Delete (CRUD) and search operations without any middleware. The result is increased simplicity.
  • Q &A