Yuriko N. wrote:
We are not yet able to find where such impacted program code (extract the 
number of a chapter from its full label) exists
within your source.
Sorry to ask for additional information, but can you tell us an example of 
where such code exist and for what purpose
such function is used ?


For example, in XXE_install_dir/addon/config/dita/xsl/xhtml/ditac_toc.xsl:

---
  <xsl:template match="ditac:tocEntry" mode="bodyTOC">
...
        <span class="toc-entry-number">
          <xsl:variable name="num"
                        select="u:shortTitlePrefix(string(@number), .)"/>
          <xsl:choose>
            <xsl:when test="$num ne ''">
              <xsl:choose>
                <xsl:when test="@role eq 'part' or
                                @role eq 'chapter' or
                                @role eq 'appendix'">
                  <xsl:value-of
                    select="concat($num, $title-prefix-separator1)"/>
                </xsl:when>
                <xsl:otherwise>
                  <!-- Discard leading 'Section '. -->
                  <xsl:value-of
                    select="concat(substring-after($num, '&#xA0;'),
                                   $title-prefix-separator1)"/>
                </xsl:otherwise>
              </xsl:choose>
            </xsl:when>
            <xsl:otherwise>&#xA0;</xsl:otherwise>
          </xsl:choose>
        </span>
...
  </xsl:template>
---

More precisely the lines:

---
                  <!-- Discard leading 'Section '. -->
                  <xsl:value-of
                    select="concat(substring-after($num, '&#xA0;'),
---

This gives this kind of TOC entry:
---
1. Contents of the installation directory
---
in http://www.xmlmind.com/ditac/_distrib/doc/manual/index.html

Without "substring-after($num, '&#xA0;')", you would have:
---
Section 1. Contents of the installation directory
---
in the TOC.

This kind of sloppy code "substring-after($num, '&#xA0;')" is unfortunately found in many places in ditac's XSL stylesheets.

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to