File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 83
83
84
84
<!-- Only put the Nav doc in the NCX TOC if $nav.in.ncx is enabled -->
85
85
<xsl : template match =" h:nav[@data-type='toc']" mode =" ncx.toc.gen" >
86
+ <xsl : param name =" nav.in.ncx" select =" $nav.in.ncx" />
86
87
<xsl : if test =" $nav.in.ncx = 1" >
87
88
<xsl : call-template name =" generate.navpoint" />
88
89
</xsl : if >
106
107
107
108
<xsl : template name =" generate.navpoint" >
108
109
<xsl : param name =" node" select =" ." />
110
+
111
+ <!-- Primarily included for xspec testing, but allows for the possibility of toggling labeling for individual navPoints -->
112
+ <xsl : param name =" ncx.toc.include.labels" select =" $ncx.toc.include.labels" />
113
+
109
114
<!-- Traverse down the tree and process descendant navpoints? Default is "yes" -->
110
115
<xsl : param name =" process-descendants" select =" 1" />
111
116
<navPoint >
124
129
<xsl : value-of select =" $label.and.title.separator" />
125
130
</xsl : if >
126
131
</xsl : if >
127
- <xsl : apply-templates select =" $node" mode =" title.markup" />
132
+ <xsl : variable name =" title.markup" >
133
+ <xsl : apply-templates select =" $node" mode =" title.markup" />
134
+ </xsl : variable >
135
+ <!-- Convert to text, as NCX navLabels cannot contain any inline markup -->
136
+ <xsl : value-of select =" $title.markup" />
128
137
</text >
129
138
</navLabel >
130
139
<content >
You can’t perform that action at this time.
0 commit comments