diff --git a/archiver/pipelines/actions/mediatypes/common-rewrite.xsl b/archiver/pipelines/actions/mediatypes/common-rewrite.xsl
new file mode 100644
index 0000000..75422f0
--- /dev/null
+++ b/archiver/pipelines/actions/mediatypes/common-rewrite.xsl
@@ -0,0 +1,32 @@
+
+
+
+
+ Created on: May 4, 2012
+ Author: vdv
+ Common functions and template for URL rewriting
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ local-name:
+
+
+
+
+
+
+
diff --git a/archiver/pipelines/test/common-rewrite.xsl b/archiver/pipelines/test/common-rewrite.xsl
new file mode 100644
index 0000000..b3289e3
--- /dev/null
+++ b/archiver/pipelines/test/common-rewrite.xsl
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+ http://example.com/foo
+
+
+
+
+
+
+
+
+
+
+
+
+ http://owark.org/foo
+
+
+
+
+
+
+
+
+
+
+
+
+ http://owark.org/foo{{{{}}}}
+
+
+
+
+
+
+
+
+
+
+
+
+ http://gmpg.org/foo
+
+
+
+
+
+
+
+
+
+
+ ../gmpg.org/11-1.html
+
+
+
+
+
+
+
+
+
+
+
+