Skip to content

Commit

Permalink
Remove unnecessary ID setting code from final_tweak.xsl
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#119.
  • Loading branch information
iay committed Aug 2, 2017
1 parent caac861 commit 594f7bf
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions mdx/uk/final_tweak.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,7 @@

<xsl:variable name="now" select="date:date-time()"/>
<xsl:variable name="validUntil" select="mdxDates:dateAdd($now, $validityDays)"/>

<!--
documentID
This value is generated from a normalised version of the aggregation instant,
transformed so that it can be used as an XML ID value.
Strict conformance to the SAML 2.0 metadata specification (section 3.1.2) requires
that the signature explicitly references an identifier attribute in the element
being signed, in this case the document element.
-->
<xsl:variable name="normalisedNow" select="mdxDates:dateAdd($now, 0)"/>
<xsl:variable name="documentID"
select="concat('uk', translate($normalisedNow, ':-', ''))"/>

<!--
Document root.
Expand All @@ -79,9 +66,6 @@
<xsl:attribute name="validUntil">
<xsl:value-of select="$validUntil"/>
</xsl:attribute>
<xsl:attribute name="ID">
<xsl:value-of select="$documentID"/>
</xsl:attribute>
<xsl:apply-templates select="@*"/>
<xsl:call-template name="document.comment"/>

Expand Down

0 comments on commit 594f7bf

Please sign in to comment.