Skip to content

Commit

Permalink
Make the validityDays variable into a parameter with the same default…
Browse files Browse the repository at this point in the history
… value. This means that the transform's caller (e.g., the aggregator) can override the default value without needing to edit the source file.
  • Loading branch information
iay committed May 30, 2011
1 parent 1b2b580 commit 28e20a7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/test_master_unsigned.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
This parameter determines the number of days between the aggregation instant and the
end of validity of the signed metadata.
-->
<xsl:variable name="validityDays" select="14"/>
<xsl:param name="validityDays" select="14"/>

<xsl:variable name="now" select="date:date-time()"/>
<xsl:variable name="validUntil" select="mdxDates:dateAdd($now, $validityDays)"/>
Expand Down
2 changes: 1 addition & 1 deletion build/uk_master_back.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
This parameter determines the number of days between the aggregation instant and the
end of validity of the signed metadata.
-->
<xsl:variable name="validityDays" select="14"/>
<xsl:param name="validityDays" select="14"/>

<xsl:variable name="now" select="date:date-time()"/>
<xsl:variable name="validUntil" select="mdxDates:dateAdd($now, $validityDays)"/>
Expand Down
2 changes: 1 addition & 1 deletion build/uk_master_export.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
This parameter determines the number of days between the aggregation instant and the
end of validity of the signed metadata.
-->
<xsl:variable name="validityDays" select="14"/>
<xsl:param name="validityDays" select="14"/>

<xsl:variable name="now" select="date:date-time()"/>
<xsl:variable name="validUntil" select="mdxDates:dateAdd($now, $validityDays)"/>
Expand Down
2 changes: 1 addition & 1 deletion build/uk_master_test.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
This parameter determines the number of days between the aggregation instant and the
end of validity of the signed metadata.
-->
<xsl:variable name="validityDays" select="14"/>
<xsl:param name="validityDays" select="14"/>

<xsl:variable name="now" select="date:date-time()"/>
<xsl:variable name="validUntil" select="mdxDates:dateAdd($now, $validityDays)"/>
Expand Down
2 changes: 1 addition & 1 deletion build/uk_master_unsigned.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
This parameter determines the number of days between the aggregation instant and the
end of validity of the signed metadata.
-->
<xsl:variable name="validityDays" select="14"/>
<xsl:param name="validityDays" select="14"/>

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

0 comments on commit 28e20a7

Please sign in to comment.