Skip to content

Commit 35b3911

Browse files
author
Sanders Kleinfeld
committed
No variables allowed in @use in xsl:key. Note: This change invalidates the function-xslt2.xsl template, so further tweaks will be needed to overall XSLT 2.0 processor logic.
1 parent 163bbed commit 35b3911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htmlbook-xsl/chunk.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
encoding="UTF-8"/>
2020
<xsl:preserve-space elements="*"/>
2121

22-
<xsl:key name="chunks" match="h:section|h:div[@data-type='part']|h:nav[@data-type='toc']" use="htmlbook:is-chunk(., $chunk.level)"/>
22+
<xsl:key name="chunks" match="h:section|h:div[@data-type='part']|h:nav[@data-type='toc']" use="htmlbook:is-chunk(.)"/>
2323

2424
<!-- Nodeset of all chunks in this document -->
2525
<xsl:variable name="chunks" select="key('chunks', '1')"/> <!-- All chunks have an is-chunk() value of 1 -->

0 commit comments

Comments
 (0)