Home Forums DITA and XMetaL Discussion TOPLEAF: Changing bookmark levels based on context Reply To: TOPLEAF: Changing bookmark levels based on context

jlm05

Reply to: TOPLEAF: Changing bookmark levels based on context

Well, as you suspected, the DocLocation variable is never being set to “appendix”.

In the log file, the start of the appendix is:

CONTEXT: /bookmap
    TAG:
    MAP: topicref
  STACK: var=”Context” string=”MT”
      IF: (FALSE) var=”@class” target=”*bookmap/chapter*” test=”matches”
      IF: (TRUE) var=”@class” target=”*bookmap/appendix*” test=”matches”
  STACK: var=”Context” string=”MTA”
    SET: var=”AppTitle” string=”Suggested Stop Words”

The start of the front matter (which is working) is:

CONTEXT: /bookmap
    TAG:
    MAP: frontmatter
PAGETYPE: “title” FOLLOWED BY PAGETYPE: “no_header”
  STACK: var=”Context” string=”MF”
  STACK: var=”DocLocation” string=”front”

I am not sure why the frontmatter tag is picking up the DocLocation variable, but the appendix tag is not. There is a difference in that “frontmatter” is part of the context for the front matter topics, while “appendix” is not, but I don't know if that's the issue or how to fix it.

Reply

Products
Downloads
Support