From 5acb10101fd74f61e288b841c54f7121d3169563 Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Wed, 9 May 2012 19:38:21 +0200 Subject: [PATCH] Rewriting resources with no archived out links --- .../actions/mediatypes/common-rewrite.xsl | 32 ++++++ archiver/pipelines/test/common-rewrite.xsl | 104 ++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 archiver/pipelines/actions/mediatypes/common-rewrite.xsl create mode 100644 archiver/pipelines/test/common-rewrite.xsl 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 + + + + + + + + + + + +