advertisement

XForms and eXist: A Perfect Couple

100 %
0 %
advertisement
Information about XForms and eXist: A Perfect Couple

Published on December 5, 2007

Author: ebruchez

Source: slideshare.net

Description

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

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

Add a comment

Related pages

XForms and eXist: A Perfect Couple - PdfSR.com

XForms and eXist A perfect couple Erik Bruchez [email protected] A demo; XForms • Represents form data as XML • But how do you persist it?
Read more

Forms Everywhere: XForms evening at XML 2007 - Orbeon

eXist and Orbeon (XForms) are indeed the perfect couple, it allows to easily develop document version independent applications. I've given them kudos:
Read more

XRX (web application architecture) - Wikipedia, the free ...

... His presentation titled: XForms and the eXist XML database: a perfect couple, ... Although XRX architecture is centred on XForms and XQuery, ...
Read more

Atomic Wiki - exist-db.org

Erik Bruchez: XForms and the eXist XML database: a perfect couple. Dan McCreary: Using XForms and eXist to Manage Metadata. Kurt Cagle: Lightweight XML.
Read more

XForms - World Wide Web Consortium

Other links to the same ideas, though without using the XRX name are: XForms and eXist: A Perfect Couple and XForms, REST, XQuery...and skimming. Links.
Read more

XForms Essentials

You are reading O'Reilly XForms Essentials by Micah ... The book in your hands introduces you to XForms, ... , continues to exist even when the means of ...
Read more

Xforms | LinkedIn

Xforms at a glance: 1,498 LinkedIn members have this skill. Where they work. ... Developer at eXist Open Source Native XML Database. Berlin Area, Germany.
Read more

Do Perfect COUPLE exist in Bollywood ? - YouTube

Subscribe NOW! http://www.youtube.com/subscription_center?a... Skip navigation Upload. Sign in. ... Do Perfect COUPLE exist in Bollywood ? zoom.
Read more

Perfect Couples Don't Exist Memes. Best Collection of ...

Perfect Couples Don't Exist Memes. Updated daily, for more funny memes check our homepage. Menu. Featured Recent Top Hall Of Fame Userbase Feed Contact Us ...
Read more