a

sneak peak

❧@☙

BaseX-Web

BaseX-Web is…
Pure
XML & only XML Technologies
Lightweight
…yet capable
Convenient*
produces XHTML, no conversions needed
*at least for XML guys :-)
Servlet Implementation
runs on top of the jetty:// web server
EXPath Extension Module
handles the binary dependencies
BaseX Database Server
persists XML, processes XQuery

Architecture

Model
Optional XQuery module → CRUD
View
XQuery script-file that requests data
Controller
feeds data from a model to the query

Model

returns
XML fragments
persistsvalidates
XML fragments
decouples
data from business logic

Source

Books Model

model:find-all()

model:find-by-author()

View

calls a controller action
that requests data from the mdoel
renders
XML fragments as HTML*
* or XML, JSON, Text, Binary

Rendering

Books Views

Live example

Interaction

Interactive Views

Live example

Serialization Options

JSON Books Views

Serialization example

Serving Binary

Serving Binary

Binary

Controller

XQuery Module
auto imported → view
Gets data from the model
as requested by the view
Business Logic
redirecting, condition checks etc.

…try it yourself

Github
micheee/xquery-webapp-skeleton
Twitter
@micheee
Google+
Michael Seiferle
ms@basex.org

Thank you.

➡ ☕