Notices page after cover page but before TOC

Here should go questions about transforming XML with XSLT and FOP.
josecotes
Posts: 23
Joined: Wed Nov 18, 2015 6:43 pm

Notices page after cover page but before TOC

Post 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,
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Notices page after cover page but before TOC

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply