sub-TOC references in main TOCs

This forum is for Single-Sourcing your Flare content to multiple outputs.
Post Reply
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

sub-TOC references in main TOCs

Post by pdenchfield »

Looks like condition tagging of TOC entries in "sub-TOCs" is not honored. So if I sequester all front matter pieces (title, copyright, contents, etc.) to a sub-TOC called FrontMatter-Print.fltoc, and in the main TOC I reference that sub-TOC, any condition tags I apply to TOC entries in that front matter TOC is not honored by targets pointed to the main TOC. Is that right? If so, I think my team needs to avoid setting conditions on any sub-TOC because they don't work.

Example of main TOC reference to sub-TOC - see first "TocEntry" line referencing a .fltoc file instead of an .htm file:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CatapultToc Version="1">
    <TocEntry Title="FrontMatter-Print" Link="/Project/TOCs/FrontMatter-Print.fltoc" conditions="Default.PrintOnly" StartSection="false" StartChapter="false" />
    <TocEntry Title="Introduction" Link="/Content/Introduction.htm" StartChapter="true" PageLayout="/Content/Resources/PageLayouts/Chapter.flpgl" PageType="first" PageNumberReset="reset" PageNumberFormat="decimal" PageNumber="1" StartSection="false" />
</CatapultToc>
Example sub-TOC with conditions Default.PrintOnly and ProductSKUs.UIS that are not honored in output:

Code: Select all

<?xml version="1.0" encoding="utf-16"?>
<CatapultToc
  Version="1">
  <TocEntry
    Title="UIS fm-Title"
    Link="/Content/fm-Title.htm"
    conditions="Default.PrintOnly,ProductSKUs.UIS"
    StartSection="false"
    StartChapter="true"
    PageLayout="/Content/Resources/PageLayouts/Title.flpgl"
    PageType="title"
    PageNumberReset="reset"
    PageNumberFormat="lower-roman"
    PageNumber="1" />
  <TocEntry
    Title="LS fm-Title"
    Link="/Content/fm-Title.htm"
    conditions="Default.PrintOnly,ProductSKUs.LS"
    StartSection="false"
    StartChapter="true"
    PageLayout="/Content/Resources/PageLayouts/LS-Title.flpgl"
    PageType="title"
    PageNumberReset="reset"
    PageNumberFormat="lower-roman"
    PageNumber="1" />
  <TocEntry
    Title="fm-CopyrightPage"
    Link="/Content/fm-CopyrightPage.htm"
    StartChapter="true"
    PageLayout="/Content/Resources/PageLayouts/Title.flpgl"
    PageNumber="1"
    PageNumberReset="continue"
    StartSection="false"
    conditions="Default.PrintOnly" />
  <TocEntry
    Title="fm-Contents"
    Link="/Content/fm-Contents.htm"
    conditions="Default.PrintOnly" />
</CatapultToc>
What are best practices for using sub-TOCs?
Post Reply