diff --git a/archiver/pipelines/actions/archive-resource.xpl b/archiver/pipelines/actions/archive-resource.xpl
index 85e014c..798dc67 100644
--- a/archiver/pipelines/actions/archive-resource.xpl
+++ b/archiver/pipelines/actions/archive-resource.xpl
@@ -2,161 +2,222 @@
-
-
-
-
-
-
-
-
- archive
-
-
-
-
-
-
-
+
-
+ index.xml
- write
- document
+ read
+ xquery
+
+
+
-
-
+
+
+
+
-
-
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
- oxf:/actions/mediatypes/
-
- .xpl
-
+ queue.xml
+ write
+ xquery
+
+
+
-
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ archive
+
+
+
-
+
- rewritten-
write
document
-
-
+
+
+
-
+
+
+
-
-
-
-
-
-
-
- index.xml
-
- write
- xquery
-
-
-
-
-
-
-
- rewritten-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ oxf:/actions/mediatypes/
+
+ .xpl
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rewritten-
+
+
+ write
+ document
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ index.xml
+
+ write
+ xquery
+
+
+
+
+
+
+
+ rewritten-
+
+
+
+
+
+
into $as
]]>
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
- queue.xml
- write
- xquery
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ queue.xml
+ write
+ xquery
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
- index.xml
-
- write
- xquery
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ index.xml
+
+ write
+ xquery
+
+
+
+
+
+
+
+
+
+
into $as
]]>
-
-
-
-
-
-
-
-
-
-
-
-
- queue.xml
- write
- xquery
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ queue.xml
+ write
+ xquery
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
+