Skip to content

Commit

Permalink
Spell validUntil consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Dec 2, 2019
1 parent 8ca2449 commit bbe7bbc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@
Assumes that a day is exactly 86400 seconds, which is close enough for
these purposes.
-->
<bean id="validuntil_aggregate_days" class="java.lang.Integer" factory-method="parseInt"
<bean id="validUntil_aggregate_days" class="java.lang.Integer" factory-method="parseInt"
c:_="${validUntil.aggregate.days:14}"/>
<bean id="validuntil_aggregate_ISO" parent="String"
c:_="#{ now_instant.plusSeconds(86400*validuntil_aggregate_days).toString()}"/>
<bean id="validUntil_aggregate_ISO" parent="String"
c:_="#{ now_instant.plusSeconds(86400*validUntil_aggregate_days).toString()}"/>

<!--
***********************************************
Expand Down
10 changes: 5 additions & 5 deletions mdx/uk/final_tweak.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,26 @@
<xsl:param name="now_local_ISO"/>

<!--
valid_until_ISO
validUntil_ISO
This parameter is an ISO8601 representation of the UTC instant
at which the aggregate will become invalid. This has been computed
by the caller as now_ISO + validityDays days.
-->
<xsl:param name="valid_until_ISO"/>
<xsl:param name="validUntil_ISO"/>

<!--
Document element.
-->
<xsl:template match="/md:EntitiesDescriptor">
<xsl:call-template name="document.comment">
<xsl:with-param name="validUntil" select="$valid_until_ISO"/>
<xsl:with-param name="validUntil" select="$validUntil_ISO"/>
</xsl:call-template>
<EntitiesDescriptor>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="validUntil"><xsl:value-of select="$valid_until_ISO"/></xsl:attribute>
<xsl:attribute name="validUntil"><xsl:value-of select="$validUntil_ISO"/></xsl:attribute>
<xsl:call-template name="document.comment">
<xsl:with-param name="validUntil" select="$valid_until_ISO"/>
<xsl:with-param name="validUntil" select="$validUntil_ISO"/>
</xsl:call-template>

<!--
Expand Down
10 changes: 5 additions & 5 deletions mdx/uk/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
<entry key="validityDays" value="${validUntil.aggregate.days}"/>
<entry key="now_ISO" value-ref="now_ISO"/>
<entry key="now_local_ISO" value-ref="now_local_ISO"/>
<entry key="valid_until_ISO" value-ref="validuntil_aggregate_ISO"/>
<entry key="validUntil_ISO" value-ref="validUntil_aggregate_ISO"/>
</map>
</property>
</bean>
Expand Down Expand Up @@ -438,7 +438,7 @@
<entry key="validityDays" value="${validUntil.aggregate.days}"/>
<entry key="now_ISO" value-ref="now_ISO"/>
<entry key="now_local_ISO" value-ref="now_local_ISO"/>
<entry key="valid_until_ISO" value-ref="validuntil_aggregate_ISO"/>
<entry key="validUntil_ISO" value-ref="validUntil_aggregate_ISO"/>
</map>
</property>
</bean>
Expand Down Expand Up @@ -523,7 +523,7 @@
<entry key="validityDays" value="${validUntil.aggregate.days}"/>
<entry key="now_ISO" value-ref="now_ISO"/>
<entry key="now_local_ISO" value-ref="now_local_ISO"/>
<entry key="valid_until_ISO" value-ref="validuntil_aggregate_ISO"/>
<entry key="validUntil_ISO" value-ref="validUntil_aggregate_ISO"/>
</map>
</property>
</bean>
Expand Down Expand Up @@ -583,7 +583,7 @@
<entry key="validityDays" value="${validUntil.aggregate.days}"/>
<entry key="now_ISO" value-ref="now_ISO"/>
<entry key="now_local_ISO" value-ref="now_local_ISO"/>
<entry key="valid_until_ISO" value-ref="validuntil_aggregate_ISO"/>
<entry key="validUntil_ISO" value-ref="validUntil_aggregate_ISO"/>
</map>
</property>
</bean>
Expand Down Expand Up @@ -641,7 +641,7 @@
<entry key="validityDays" value="${validUntil.aggregate.days}"/>
<entry key="now_ISO" value-ref="now_ISO"/>
<entry key="now_local_ISO" value-ref="now_local_ISO"/>
<entry key="valid_until_ISO" value-ref="validuntil_aggregate_ISO"/>
<entry key="validUntil_ISO" value-ref="validUntil_aggregate_ISO"/>
</map>
</property>
</bean>
Expand Down

0 comments on commit bbe7bbc

Please sign in to comment.