diff --git a/archiver/pipelines/archive-resource.xpl b/archiver/pipelines/archive-resource.xpl
new file mode 100644
index 0000000..47cfb8c
--- /dev/null
+++ b/archiver/pipelines/archive-resource.xpl
@@ -0,0 +1,328 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ archive
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ write
+ document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ session
+
+
+
+
+
+
+
+
+
+
+
+
+
+ html
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rewritten-
+
+
+ write
+ document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ index.xml
+
+ write
+ xquery
+
+
+
+
+
+
+
+ rewritten-
+
+
+
+
+
+
+ into $as
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+ queue.xml
+ write
+ xquery
+
+
+
+
+
+
+
+
+
+
+
+
+
+ into $q,
+
+for $a in /queue/action where $a/@uuid = $(uuid) return
+ update
+ delete $a
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ index.xml
+
+ write
+ xquery
+
+
+
+
+
+
+
+
+
+
+ into $as
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+ queue.xml
+ write
+ xquery
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/archiver/pipelines/archive-set.xpl b/archiver/pipelines/archive-set.xpl
new file mode 100644
index 0000000..62334ed
--- /dev/null
+++ b/archiver/pipelines/archive-set.xpl
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+
+
+
+ queue.xml
+ write
+ xquery
+
+
+ /
+
+
+
+ .xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ into $q,
+
+for $a in /queue/action where $a/@uuid = $(uuid) return
+ update
+ delete $a
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ index.xml
+
+ write
+ document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/archiver/pipelines/config.xml b/archiver/pipelines/config.xml
new file mode 100644
index 0000000..1060633
--- /dev/null
+++ b/archiver/pipelines/config.xml
@@ -0,0 +1,10 @@
+
+
+
+ http://admin@localhost:8080/orbeon/exist/rest/db/
+ owark/
+
+ Mozilla/5.0 (compatible; owark/0.3; http://owark.org/)
+
+
+
\ No newline at end of file
diff --git a/archiver/pipelines/data-access.xpl b/archiver/pipelines/data-access.xpl
new file mode 100644
index 0000000..7621df5
--- /dev/null
+++ b/archiver/pipelines/data-access.xpl
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameter not found in query
+
+
+ '
+
+ '
+
+
+
+
+
+
+ ('
+
+ ')
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/archiver/pipelines/install-db.xpl b/archiver/pipelines/install-db.xpl
new file mode 100644
index 0000000..49b8862
--- /dev/null
+++ b/archiver/pipelines/install-db.xpl
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+ index.xhtml
+ write
+ document
+
+
+
+
+
+ Owark DB
+
+
+ Owark db
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ queue.xml
+ write
+ document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/archiver/pipelines/post-archive-request.xpl b/archiver/pipelines/post-archive-request.xpl
new file mode 100644
index 0000000..1fc5885
--- /dev/null
+++ b/archiver/pipelines/post-archive-request.xpl
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+ queue.xml
+ write
+ xquery
+
+
+
+
+ into $q
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
diff --git a/archiver/pipelines/reinstall-db.xpl b/archiver/pipelines/reinstall-db.xpl
new file mode 100644
index 0000000..c6d8d52
--- /dev/null
+++ b/archiver/pipelines/reinstall-db.xpl
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/archiver/pipelines/scheduler.xpl b/archiver/pipelines/scheduler.xpl
new file mode 100644
index 0000000..8f60dfe
--- /dev/null
+++ b/archiver/pipelines/scheduler.xpl
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+ queue.xml
+ read
+ xquery
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ oxf:/
+
+ .xpl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/archiver/pipelines/uninstall-db.xpl b/archiver/pipelines/uninstall-db.xpl
new file mode 100644
index 0000000..3ff971c
--- /dev/null
+++ b/archiver/pipelines/uninstall-db.xpl
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+