Caroline L. wrote:

Is it possible to use the header/footer parameters elsewhere in the document?

For example, I wanted to use {{document-title}} on my cover page instead of
<xsl:sequence select="$ditacLists/ditac:titlePage/booktitle/mainbooktitle"/>

I'm sorry but the answer is no.

If you want to customize the content of the title page, you'll have to redefine one or more templates found in ditac_install_dir/xsl/fo/ditac_titlePage.xsl.

For example:
---
  <xsl:template name="autoTitlePage">
    <fo:block xsl:use-attribute-sets="title-page" id="__TP">
      <xsl:for-each select="$ditacLists/ditac:titlePage">
        <!-- Compose your title-page by invoking one or more titlePage_XXX
             (with the right options for some of these templates). -->

        <xsl:call-template name="titlePage_library"/>
        <xsl:call-template name="titlePage_title"/>
        <xsl:call-template name="titlePage_titlealt"/>

        <xsl:call-template name="titlePage_author">
<xsl:with-param name="authorOptions" select="'all'" tunnel="yes"/>
        </xsl:call-template>

        <xsl:call-template name="titlePage_lastCritdate"/>

        <xsl:call-template name="titlePage_publisher">
          <xsl:with-param name="publisherOptions" select="'all'"
                          tunnel="yes"/>
        </xsl:call-template>

      </xsl:for-each>
    </fo:block>
  </xsl:template>

...

  <xsl:template name="titlePage_title">
    <xsl:variable name="bookTitle"
                  select="*[contains(@class,' bookmap/booktitle ')]"/>
    <xsl:choose>
      <xsl:when test="exists($bookTitle)">
        <xsl:apply-templates
select="$bookTitle/*[contains(@class,' bookmap/mainbooktitle ')]"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:apply-templates select="*[contains(@class,' topic/title ')]"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
---



Also, if I wanted to include the TOC in the page numbering of the entire document, (ex. from 'page iii of iii' to 'page 3 of n' where n is the last page of the book) that would involve modifying several of the templates in pagination.xsl?


I'm afraid everything related to pagination, aside headers and footers is pretty rigid in ditac. So yes, what you want to do involves modifying several of the templates in pagination.xsl.

--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to