XForms and eXist: A Perfect Couple

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Group

    XForms and eXist: A Perfect Couple - Presentation Transcript

    1. XForms and eXist A perfect couple Erik Bruchez ebruchez@orbeon.com
    2. A demo
    3. XForms • Represents form data as XML • But how do you persist it?
    4. XForms Persistence There is no such thing!
    5. <xforms:submission> • Allows XForms to “talk” to the world • Fully supports REST in XForms 1.1
    6. REST • Using HTTP the way it was meant to be • Identify resources with URIs • Methods: GET, PUT, DELETE, POST
    7. Traditionally • UI written with Java, Ruby, ... • Data captured as objects • Relational database • O-R mapping to bridge the gap
    8. Issues • Middleware to do the mapping • More software
    9. What about XForms? • Implement a REST service • XML-relational mapping • Or store in BLOB columns
    10. Is there a better way?
    11. eXist • Native XML database • Open source • XQuery • REST API
    12. 2+2=?
    13. Perfect Match • XML • REST
    14. No need for a middle man!
    15. GET <xforms:submission serialization=”none” method=”get” action=”http://localhost/exist/db/docs/form1.xml” replace=”instance” instance=”form-instance”/>
    16. PUT <xforms:submission ref=”instance(‘form-instance’)” method=”put” action=”http://localhost/exist/db/docs/form1.xml” replace=”none”/>
    17. DELETE <xforms:submission serialization=”none” method=”delete” action=”http://localhost/exist/db/docs/form1.xml” replace=”none”/>
    18. POST <xforms:submission ref=”instance(‘search-query’)” method=”post” action=”http://localhost:8080/exist/db/docs/” replace=”instance” instance=”query-results”/>
    19. XQuery <xforms:instance id=”search-query”> <exist:query> <exist:text> xquery version \"1.0\"; <documents>{ for ... return ... }</documents> </exist:text> </exist:query> </xforms:instance>
    20. Using XQuery results • Output values with <xforms:output> • Iterate with <xforms:repeat>
    21. 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.
    22. Q &A

    ebruchezebruchez, 2 years ago

    custom

    29042 views, 0 favs, 2 embeds more stats

    These are the slides I presented on December 3, 200 more

    More Info

    © All Rights Reserved

    Go to text version
    • Total Views 29042
      • 29039 on SlideShare
      • 3 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 96
    Most viewed embeds
    • 2 views on http://www.filescon.com
    • 1 views on http://www.oplahol.com

    more

    All embeds
    • 2 views on http://www.filescon.com
    • 1 views on http://www.oplahol.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as innappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel

    Categories

    Groups / Events