Skip to content

Commit 3106b0a

Browse files
author
Sanders Kleinfeld
committed
Renaming variables and updating comments in get-param-value-from-key template to reflect generalized usage.
1 parent be8ce8c commit 3106b0a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

htmlbook-xsl/common.xsl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,17 +267,17 @@
267267
<xsl:template name="get-param-value-from-key">
268268
<xsl:param name="parameter"/>
269269
<xsl:param name="key"/>
270-
<xsl:variable name="entry-and-beyond-for-data-type">
271-
<!-- Gets the config line for numeration for the specified data-type...and everything beyond -->
270+
<xsl:variable name="entry-and-beyond">
271+
<!-- Gets the value corresponding to specified key...and everything beyond -->
272272
<xsl:value-of select="substring-after(normalize-space($parameter), concat($key, ':'))"/>
273273
</xsl:variable>
274-
<!-- Then we further narrow to the exact numeration format type -->
274+
<!-- Then we further narrow to just the key value -->
275275
<xsl:choose>
276-
<xsl:when test="contains($entry-and-beyond-for-data-type, ' ')">
277-
<xsl:value-of select="substring-before($entry-and-beyond-for-data-type, ' ')"/>
276+
<xsl:when test="contains($entry-and-beyond, ' ')">
277+
<xsl:value-of select="substring-before($entry-and-beyond, ' ')"/>
278278
</xsl:when>
279279
<xsl:otherwise>
280-
<xsl:value-of select="$entry-and-beyond-for-data-type"/>
280+
<xsl:value-of select="$entry-and-beyond"/>
281281
</xsl:otherwise>
282282
</xsl:choose>
283283
</xsl:template>

0 commit comments

Comments
 (0)