Skip to content

Commit

Permalink
Adjust to allow for authorities that aren't aligned to the left margi…
Browse files Browse the repository at this point in the history
…n, or which aren't folded correctly.
  • Loading branch information
iay committed Nov 9, 2009
1 parent c03bf2e commit 1403b60
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/extract_authorities.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wayf="http://sdss.ac.uk/2006/06/WAYF"

xmlns:mdxTextUtils="xalan://uk.ac.sdss.xalan.md.TextUtils"
extension-element-prefixes="mdxTextUtils"

exclude-result-prefixes="shibmeta md ds wayf">

<!-- Output is plain text -->
<xsl:output method="text"/>

<xsl:template match="//md:EntitiesDescriptor/md:Extensions/shibmeta:KeyAuthority//ds:X509Certificate">
<xsl:text>-----BEGIN CERTIFICATE-----&#x0a;</xsl:text>
<xsl:value-of select="."/>
<xsl:text>-----END CERTIFICATE-----&#x0a;</xsl:text>
<xsl:value-of select="mdxTextUtils:wrapBase64(.)"/>
<xsl:text>&#x0a;-----END CERTIFICATE-----&#x0a;</xsl:text>
</xsl:template>

<xsl:template match="text()">
Expand Down

0 comments on commit 1403b60

Please sign in to comment.