Skip to content

Commit

Permalink
Bugzilla 694: change prefix used for Shibboleth metadata. Doesn't aff…
Browse files Browse the repository at this point in the history
…ect the output, which is plain text.
  • Loading branch information
iay committed Jun 18, 2010
1 parent f7ffc9f commit 4a3dd84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build/extract_authorities.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0"
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"
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">
exclude-result-prefixes="shibmd md ds wayf">

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

<xsl:template match="//md:EntitiesDescriptor/md:Extensions/shibmeta:KeyAuthority//ds:X509Certificate">
<xsl:template match="//md:EntitiesDescriptor/md:Extensions/shibmd:KeyAuthority//ds:X509Certificate">
<xsl:text>-----BEGIN CERTIFICATE-----&#x0a;</xsl:text>
<xsl:value-of select="mdxTextUtils:wrapBase64(.)"/>
<xsl:text>&#x0a;-----END CERTIFICATE-----&#x0a;</xsl:text>
Expand Down
8 changes: 4 additions & 4 deletions build/extract_scopes.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:shibmeta="urn:mace:shibboleth:metadata:1.0"
xmlns:shibmd="urn:mace:shibboleth:metadata:1.0"
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"
exclude-result-prefixes="shibmeta md ds wayf">
exclude-result-prefixes="shibmd md ds wayf">

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

<xsl:template match="//shibmeta:Scope[@regex = 'true']">
<xsl:template match="//shibmd:Scope[@regex = 'true']">
<!-- do nothing -->
</xsl:template>

<xsl:template match="//shibmeta:Scope">
<xsl:template match="//shibmd:Scope">
<xsl:value-of select="."/>
<xsl:text>&#x0a;</xsl:text>
</xsl:template>
Expand Down

0 comments on commit 4a3dd84

Please sign in to comment.