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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +