diff options
author | Leif Johansson <leifj@sunet.se> | 2014-04-24 15:21:11 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2014-04-24 15:21:11 +0200 |
commit | e726c093bb2f2ac637190963a1e023d8dc0c13c3 (patch) | |
tree | 9c3a6ec376d7e166e006fcbd0c3f74092c177463 | |
parent | bf54c522a3bcf446607a0f45c1121918745297bb (diff) |
heartblead tools
-rw-r--r-- | scripts/urls2hostport.py | 6 | ||||
-rw-r--r-- | xslt/list-locations.xslt | 21 |
2 files changed, 27 insertions, 0 deletions
diff --git a/scripts/urls2hostport.py b/scripts/urls2hostport.py new file mode 100644 index 00000000..c4ff33bf --- /dev/null +++ b/scripts/urls2hostport.py @@ -0,0 +1,6 @@ + +import sys +from urlparse import urlparse +for url in sys.stdin: + o = urlparse(url) + print o.netloc diff --git a/xslt/list-locations.xslt b/xslt/list-locations.xslt new file mode 100644 index 00000000..fd22fac3 --- /dev/null +++ b/xslt/list-locations.xslt @@ -0,0 +1,21 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:ds="http://www.w3.org/2000/09/xmldsig#" + xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" + xmlns:exsl="http://exslt.org/common" + extension-element-prefixes="exsl" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"> + + <xsl:output method="text"/> + + <xsl:template match="//*[@Location]"> + <xsl:value-of select="@Location"/><xsl:text> +</xsl:text> + </xsl:template> + <xsl:template match="text()"/> + +</xsl:stylesheet> |