From 71e68343a3378585f90e9aacd24273c83531001a Mon Sep 17 00:00:00 2001 From: Ian Young Date: Tue, 12 Apr 2011 10:05:14 +0000 Subject: [PATCH] Stylesheet and perl script which, combined, list the SAML 2.0 support for a list of entities given by ID attribute value (@ID, not @entityID). --- attic/extract_saml2sp.pl | 24 ++++++++++++++++++++++++ attic/extract_saml2sp.xsl | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100755 attic/extract_saml2sp.pl create mode 100644 attic/extract_saml2sp.xsl 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 + + + + + + + + +