XProc Examples

1. XProc Examples

A few examples using xprocxq a pure XQuery implementation of the XProc standard, which is closely integrated with eXist.

To run any of these examples, some files have to be stored into the database. This can be done through the "Examples Setup" page on the admin web application.

Examples
hello.xproc "Hello world" in XProc
xslt-identity.xproc Pass an XML fragment through an XSLT identity transformation.
twitter.xproc Retrieve a feed from twitter in Atom format and display it.
p:directory-list-native.xproc p:directory step example working on eXist collections.
p:directory-list-local.xproc p:directory step example on file system directories (NOTE - requires existdb File module to be enabled).
xslt transformation Apply xslt transformation to input supplied as a url paramater.

Note

Files with the .xproc extension are identified by the REST server and automatically forwarded to xprocxq for processing.

Wolfgang M. Meier
wolfgang at exist-db.org