Hi M. Shafie,

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"/>

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?

Regards,
Caroline
________________________________
From: Hussein Shafie <[email protected]>
Sent: Tuesday, December 12, 2023 3:55 AM
To: '[email protected]' <[email protected]>
Subject: Re: [ditac] pagesets in ditac

I'm afraid this answer will be almost the same as my previous one.

1) Please use bookmap/frontmatter/booklists to specify where your TOC is
to be generated.

Note that you may add topicrefs pointing to manually written topics
*before* the booklists.  See
http://docs.oasis-open.org/dita/dita/v1.3/errata02/os/complete/part2-tech-content/langRef/technicalContent/frontmatter.html

For example:
---
   <frontmatter>
     <topicref href="BEFORE_TOC.dita"/>

     <booklists>
       <toc />
     </booklists>

     <bookabstract href="introduction.dita"/>
   </frontmatter>
---

2) Please note that ".ditac" and ".ditac_lists" files are intermediate
files having a proprietary, internal format. As such, you are not
supposed to modify these files.

These files are (partially) documented only because the ditac XSLT
stylesheets are used to transform them to the desired output. See
http://www.xmlmind.com/ditac/_distrib/doc/manual/webhelp3/howItWorks.html

3) How to modify ditac (in any way; including customizing the XSLT
stylesheets) is not part of our support policy. See "Support Policy",
http://www.xmlmind.com/ditac/support_policy.html. That is, I'm not
supposed to suggest solutions to the kind of advanced problems you are
posing.





Caroline L. wrote:
>
> Thank you for responding. My original question was not clear. I do
> understand how to customize the output by importing the stock stylesheets.
>
> I had tried something like this, in the plugin's topic.xsl, which didn't
> work:
>
> |<xsl:template match="*[contains(@class,' topic/topic
> ')][@outputclass='cover']">||||<fo:page-sequence
> master-reference="title">||||<fo:flow flow-name="xsl-region-body"
> xsl:use-attribute-sets="base-style">||||<xsl:apply-templates/>||||<xsl:call-template
>  
> name="build-cover-footer"/>||||</fo:flow>||||</fo:page-sequence>||||</xsl:template>|
>
> So we are trying something different, Would moving the
> <ditac:toc/> change the position of the TOC in the PDF output? Is it
> possible to modify the ditac_lists_ditac_lists with a customized style
> sheet?
>
> For example,  moving the toc from:
> <ditac:lists xmlns:ditac="http://www.xmlmind.com/ditac/schema/ditac";
> xml:lang="en">
>       <ditac:chunkList>
>             <ditac:chunk file="bookmap.pdf">
>                   <ditac:titlePage/>
>                   <ditac:toc/>
>                   <ditac:topic id="cover" number="section1.1"
> role="section1" title="Spare Parts List"/>
>                   <ditac:topic id="fm-notices" number="chapter.1"
> role="chapter" title="Notices"/>
>                   <ditac:topic id="general" number="chapter.2"
> role="chapter" title="General"/>
> .
> .
>
> to:
> <ditac:lists xmlns:ditac="http://www.xmlmind.com/ditac/schema/ditac";
> xml:lang="en">
>       <ditac:chunkList>
>             <ditac:chunk file="bookmap.pdf">
>                   <ditac:titlePage/>
>                   <ditac:topic id="cover" number="section1.1"
> role="section1" title="Spare Parts List"/>
>                   <ditac:topic id="fm-notices" number="chapter.1"
> role="chapter" title="Notices"/>
>                   <ditac:toc/>
>                   <ditac:topic id="general" number="chapter.2"
> role="chapter" title="General"/>
> .
> .
>
> This is the ditamap:
> <bookmap xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/";
> id="DMJPCP1928"
>       xml:lang="en" ditaarch:DITAArchVersion="1.3"
>       domains="(map mapgroup-d)                            (map bookmap)
>                             (topic abbrev-d)
>   (topic delay-d)                            a(props deliveryTarget)
>                         (map ditavalref-d)
>   (topic hazard-d)                            (topic hi-d)
>               (topic indexing-d)        (topic markup-d)
>             (topic pr-d)                            (topic relmgmt-d)
>                           (topic sw-d)                            (topic
> ui-d)                            (topic ut-d)
>   (topic xnal-d)                            (topic markup-d xml-d)   "
>       class="- map/map bookmap/bookmap ">
>       <booktitle class="- topic/title bookmap/booktitle ">
>             <mainbooktitle class="- topic/ph bookmap/mainbooktitle
> ">Finishing/Cleaning</mainbooktitle>
>       </booktitle>
>       <chapter format="dita" href="cover_page.dita" navtitle="Cover
> Page" type="topic"
>             class="- map/topicref "/>
>       <chapter format="ditamap" href="front_matter.ditamap"
> navtitle="Front Matter" type="map"
>             class="- map/topicref bookmap/chapter "/>
>       <chapter format="ditamap" href="general.ditamap"
> navtitle="General" type="map"
>             class="- map/topicref bookmap/chapter "/>
>       <chapter format="dita" href="machine_overview.dita"
> navtitle="overview" type="topic"
>             class="- map/topicref bookmap/chapter "/>
>       <chapter format="ditamap" href="11589.ditamap" navtitle="Coating"
>             type="map" class="- map/topicref bookmap/chapter "/>
>       <chapter format="ditamap" href="98563.ditamap"
>             navtitle="Preform" type="map"
>             class="- map/topicref bookmap/chapter "/>
>       <chapter format="ditamap" href="back_matter.ditamap"
> navtitle="Back Matter" type="map"
>             class="- map/topicref bookmap/chapter "/>
> </bookmap>
>
> We tried adding <toc/> to the bookmap after the first <chapter> where
> @type=map but that didn't change the output.
> If you could suggest which templates I should be changing, that would be
> helpful.

[www.cadituk.com] <https://www.cadituk.com>
Caroline Leccese
Stylesheet Developer
[email protected]

CADIT Inc





Confidentiality Statement: This e-mail may contain confidential information and 
may be legally privileged. It is intended solely for the addressee. Access to 
this e-mail by anyone else is unauthorized. If you are not the intended 
recipient you must not use, disclose, distribute, copy, print or rely on this 
e-mail. If an addressing or transmission error has misdirected this e-mail, 
please notify the author by replying to this e-mail.
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to