Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/recipe-books.git

Formatting.

Author Dave Jarvis <email>
Date 2013-02-27 18:12:47 GMT-0800
Commit 0753e618341e7dcc5ee6b6ed6d3fab9eba41aff9
Parent a5eb40c
Delta 2 lines added, 3 lines removed, 1-line decrease
xsl/latex.xsl
| for sorting tagged recipes into "chapters"
+-->
- <xsl:for-each select="recipe[count(. | key('recipe-by-category',tags/tag[1])[1]) = 1]">
+ <xsl:for-each select="recipe[count(. | key('recipe-by-category',tags/tag[1])[1]) = 1]">
<xsl:variable name="current-grouping-key" select="tags/tag[1]"/>
<xsl:if test="$current-grouping-key != ''">
<xsl:text>&#xa;\recipecategory{</xsl:text>
<xsl:apply-templates select="$current-grouping-key" mode="escape-capitalize"/>
<xsl:text>}&#xa;&#xa;</xsl:text>
<xsl:variable name="current-group"
- select="key('recipe-by-category',
- $current-grouping-key)" />
+ select="key('recipe-by-category', $current-grouping-key)" />
<xsl:for-each select="$current-group">
<xsl:apply-templates select="." />