On 4.7.2014 16:31, Elisa Roselli wrote:
> Thanks for that. I understand about limiting support to paying customers, but 
> I had hoped this was a forum for general ditac users, and that there might be 
> others in the community, not connected to XMLmind, who might be sharing 
> advice and information.

If custom title pages mentioned by Hussein are not flexible enough for
your purposes, you can still modify existing XSLT stylesheets, but that
requires that you know XSLT language at least little bit.

Basic idea is simple, create new stylesheet that imports standard ditac
stylesheet and then customize parameters and templates:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:fo="http://www.w3.org/1999/XSL/Format";
                version="2.0">

  <xsl:import href="ditac-xsl:fo/fo.xsl"/>

  <!-- Your modifications goes here -->

</xsl:stylesheet>

You will then use this stylesheet instead of built-in by specifying -t
option to ditac tool.

In order to find what needs to be modified you have to dig into source
code of stylesheets in xsl/ directory. The good news is that DITAC
stylesheets are usually much easier to modify then ones coming with DITA-OT.

For example if you need to get second title page with copyright info,
you have to modify the following template:

  <xsl:template match="ditac:titlePage">
    <xsl:choose>
      <xsl:when test="$title-page eq 'none'">
        <!-- Nothing to do. -->
      </xsl:when>

      <xsl:when test="$title-page eq 'auto'">
        <xsl:call-template name="autoTitlePage"/>
      </xsl:when>

      <xsl:otherwise>
        <xsl:call-template name="customTitlePage"/>
      </xsl:otherwise>
    </xsl:choose>

     <fo:block break-before="page">
        <!-- Additional content for second title page goes here -->
      </fo:block>

  </xsl:template>

<advertisement>
If you don't have required XSLT skills and you want to outsource ditac
customization, please contact me off-list
</advertisement>

                                Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: [email protected]      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to