Page 1 of 1

Notices page after cover page but before TOC

Posted: Thu Nov 17, 2022 7:50 am
by josecotes
Hi all,

I am trying to move the Notices page before the TOC. I have the following code on my front-matter.xsl:

Code: Select all

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.1">
  <xsl:import href="create_cover.xsl"/>
  <xsl:template name="createFrontMatter">
    <fo:page-sequence master-reference="front-matter" xsl:use-attribute-sets="__force__page__count">
      <xsl:call-template name="insertFrontMatterStaticContents"/>
      <fo:flow flow-name="xsl-region-body">
        <fo:block xsl:use-attribute-sets="__frontmatter">
          <xsl:call-template name="create_cover" />
        </fo:block>
      </fo:flow>
    </fo:page-sequence>
    <xsl:call-template name="createNotices"/>
  </xsl:template>
</xsl:stylesheet>
I have tried in the bookmap but it doesn't work. The bookmap looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//IXIA//DTD IXIA DITA Map//EN" "IxiaMap.dtd">
<bookmap id="dnm1602234334202" rev="12.2" xml:lang="en-us">
    <booktitle ixia_locid="1">
        <mainbooktitle ixia_locid="2">Course Guide</mainbooktitle>
    </booktitle>
    <bookmeta>
        <author ixia_locid="3">Test Company</author>
        <category ixia_locid="4">Education</category>
        <prodinfo>
            <prodname ixia_locid="5">Test</prodname>
            <vrmlist>
                <vrm modification="1.0" version="12.2"/>
            </vrmlist>
        </prodinfo>
    </bookmeta>
    <frontmatter audience="pdf" ixia_locid="9">
        <notices ixia_locid="12">
            <topicref href="uop1602234357779.xml" ixia_locid="13" toc="no"/>
        </notices>
        <booklists ixia_locid="10">
            <toc ixia_locid="11"/>
        </booklists>
    </frontmatter>
    <chapter href="xwf1602234358757.xml" ixia_locid="14"/>
    <chapter format="ditamap" href="vcy1602234374505.ditamap" ixia_locid="15" keys="vcy1602234374505"/>
    <chapter format="ditamap" href="rim1602237336312.ditamap" ixia_locid="16" keys="rim1602237336312"/>
</bookmap>
Is there a way I can do this in the XSL?

Thanks,

Re: Notices page after cover page but before TOC

Posted: Mon Nov 21, 2022 8:59 am
by Radu
Hi,

Sorry for the delay, you seem to be using Ixiasoft for publishing, probably with the XSL-FO based PDF transformation.
I tested on my side something like this in the bookmap:

Code: Select all

<frontmatter>
        <notices href="concepts/notices.dita"/>
        <booklists>
            <toc/>
        </booklists>
    </frontmatter>
and it works with the DITA OT publishing engine bundled with Oxygen, the notices appears before the table of contents. So just changing the elements order in the map should be enough in my opinion, if this still does not work for you maybe you can ask on the Ixiasoft side if you are publishing through the CMS.

Regards,
Radu