Skip to content

Commit

Permalink
Don't allow the md or xalan namespace prefixes to escape into the out…
Browse files Browse the repository at this point in the history
…put file.
  • Loading branch information
iay committed Jun 17, 2009
1 parent 0b4b24e commit a578276
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions build/import.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
extension-element-prefixes="ukfxd ukftu"

xmlns:xalan="http://xml.apache.org/xalan"

exclude-result-prefixes="md xalan"

xmlns="urn:oasis:names:tc:SAML:2.0:metadata">

Expand Down Expand Up @@ -271,6 +273,42 @@
</xsl:template>


<!--
ds:KeyInfo
Normalise namespace prefix.
-->
<xsl:template match="ds:KeyInfo">
<ds:KeyInfo>
<xsl:apply-templates select="node()|@*"/>
</ds:KeyInfo>
</xsl:template>


<!--
ds:KeyName
Normalise namespace prefix.
-->
<xsl:template match="ds:KeyName">
<ds:KeyName>
<xsl:apply-templates select="node()|@*"/>
</ds:KeyName>
</xsl:template>


<!--
ds:X509Data
Normalise namespace prefix.
-->
<xsl:template match="ds:X509Data">
<ds:X509Data>
<xsl:apply-templates select="node()|@*"/>
</ds:X509Data>
</xsl:template>


<!--
Normalise whitespace in X509Certificate elements.
-->
Expand Down

0 comments on commit a578276

Please sign in to comment.