diff --git a/attic/extract_saml2sp.pl b/attic/extract_saml2sp.pl new file mode 100755 index 00000000..5b7e92be --- /dev/null +++ b/attic/extract_saml2sp.pl @@ -0,0 +1,24 @@ +#!/usr/bin/perl -w + +use Xalan; + +open(XML, xalanCall . " -IN ../xml/ukfederation-metadata-unsigned.xml -XSL extract_saml2sp.xsl|") || die "could not open input file"; +while () { + my ($id, $result) = split; + $results{$id} = $result; + print $_; +} +close XML; + +open(IDS, "ids.txt") || die "could not open ids file"; +while () { + chop; + $id = $_; + if (defined $results{$id}) { + $result = $results{$id}; + } else { + $result = 'SP?'; + } + print "$result\n"; +} +close IDS; diff --git a/attic/extract_saml2sp.xsl b/attic/extract_saml2sp.xsl new file mode 100644 index 00000000..e3378aaf --- /dev/null +++ b/attic/extract_saml2sp.xsl @@ -0,0 +1,37 @@ + + + + + + + + + + + + yes + no + + + + + + + + +