|
226 | 226 | <xsl:variable name="key" select="normalize-space(concat(@data-primary-sortas, " ", @data-primary))"/>
|
227 | 227 | <xsl:variable name="refs" select="key('primary', $key)[count(ancestor::node()|$scope) = count(ancestor::node()) and ($role = @role or $type = @type or (string-length($role) = 0 and string-length($type) = 0)) and not(@data-startref)]"/>
|
228 | 228 | <li>
|
229 |
| - <xsl:value-of select="@data-primary"/> |
| 229 | + <span data-type="index-term"> |
| 230 | + <xsl:value-of select="@data-primary"/> |
| 231 | + </span> |
230 | 232 | <xsl:choose>
|
231 | 233 | <xsl:when test="$index.links.to.section = 1">
|
232 | 234 | <xsl:for-each select="$refs[@zone != '' or generate-id() = generate-id(key('primary-section', concat($key, " ", generate-id((ancestor-or-self::h:body|ancestor-or-self::h:nav|ancestor-or-self::h:div[@data-type='part']|ancestor-or-self::h:section)[last()])))[count(ancestor::node()|$scope) = count(ancestor::node()) and ($role = @role or $type = @type or (string-length($role) = 0 and string-length($type) = 0))][1])]">
|
|
288 | 290 | <xsl:variable name="key" select="concat(normalize-space(concat(@data-primary-sortas, " ", @data-primary)), " ", normalize-space(concat(@data-secondary-sortas, " ", @data-secondary)))"/>
|
289 | 291 | <xsl:variable name="refs" select="key('secondary', $key)[count(ancestor::node()|$scope) = count(ancestor::node()) and ($role = @role or $type = @type or (string-length($role) = 0 and string-length($type) = 0)) and not(@data-startref)]"/>
|
290 | 292 | <li>
|
291 |
| - <xsl:value-of select="@data-secondary"/> |
| 293 | + <span data-type="index-term"> |
| 294 | + <xsl:value-of select="@data-secondary"/> |
| 295 | + </span> |
292 | 296 | <xsl:choose>
|
293 | 297 | <xsl:when test="$index.links.to.section = 1">
|
294 | 298 | <xsl:for-each select="$refs[@zone != '' or generate-id() = generate-id(key('secondary-section', concat($key, " ", generate-id((ancestor-or-self::h:body|ancestor-or-self::h:nav|ancestor-or-self::h:div[@data-type='part']|ancestor-or-self::h:section)[last()])))[count(ancestor::node()|$scope) = count(ancestor::node()) and ($role = @role or $type = @type or (string-length($role) = 0 and string-length($type) = 0))][1])]">
|
|
350 | 354 | <xsl:variable name="key" select="concat(normalize-space(concat(@data-primary-sortas, " ", @data-primary)), " ", normalize-space(concat(@data-secondary-sortas, " ", @data-secondary)), " ", normalize-space(concat(@data-tertiary-sortas, " ", @data-tertiary)))"/>
|
351 | 355 | <xsl:variable name="refs" select="key('tertiary', $key)[count(ancestor::node()|$scope) = count(ancestor::node()) and ($role = @role or $type = @type or (string-length($role) = 0 and string-length($type) = 0)) and not(@data-startref)]"/>
|
352 | 356 | <li>
|
353 |
| - <xsl:value-of select="@data-tertiary"/> |
| 357 | + <span data-type="index-term"> |
| 358 | + <xsl:value-of select="@data-tertiary"/> |
| 359 | + </span> |
354 | 360 | <xsl:choose>
|
355 | 361 | <xsl:when test="$index.links.to.section = 1">
|
356 | 362 | <xsl:for-each select="$refs[@zone != '' or generate-id() = generate-id(key('tertiary-section', concat($key, " ", generate-id((ancestor-or-self::h:body|ancestor-or-self::h:nav|ancestor-or-self::h:div[@data-type='part']|ancestor-or-self::h:section)[last()])))[count(ancestor::node()|$scope) = count(ancestor::node()) and ($role = @role or $type = @type or (string-length($role) = 0 and string-length($type) = 0))][1])]">
|
|
0 commit comments