From a6b90797854cc6b70195578a9e977d03b060a8c2 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Mon, 31 Jul 2006 14:42:41 +0000 Subject: [PATCH] Exclude support addresses from the metadata. --- build/addresses.pl | 5 +++- build/extract_addresses.xsl | 48 +++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 build/extract_addresses.xsl diff --git a/build/addresses.pl b/build/addresses.pl index 49dfa41a..2c82d7f3 100644 --- a/build/addresses.pl +++ b/build/addresses.pl @@ -23,7 +23,10 @@ # # Load addresses from the metadata. # -open(XML,"../xml/sdss-metadata-unsigned.xml") || die "could not open input file"; +# Exclude support addresses using some XSLT magic. +# +#open(XML,"../xml/sdss-metadata-unsigned.xml") || die "could not open input file"; +open(XML,"java -cp ../xalan-j_2_6_0/bin/xalan.jar org.apache.xalan.xslt.Process -IN ../xml/sdss-metadata-unsigned.xml -XSL extract_addresses.xsl|") || die "could not open input file"; while () { if (/(mailto:)?(.*)<\/EmailAddress>/) { $metadata{$2} = 1; diff --git a/build/extract_addresses.xsl b/build/extract_addresses.xsl new file mode 100644 index 00000000..d50199ac --- /dev/null +++ b/build/extract_addresses.xsl @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +