Getting reltable links to publish in a PDF

102 views
Skip to first unread message

Robert Berman

unread,
Nov 14, 2014, 10:21:39 AM11/14/14
to dita-o...@googlegroups.com
Hi all,

I'm very new to all of this and was hoping someone out there can help me out. We are using a CCMS to store and publish our DITA content. The CCMS uses the DITA-OT (version 1.7.5) and RenderX xep to publish to PDF. I'm attempting to get the output to publish the related topics at the end of the topic using reltables in the bookmap. I have researched this and have found that I need to set args.rellinks or possibly args.fo.include.rellinks to "all" or "nofamily" to get links to appear. My issue is I'm not entirely sure in what file and what part of the file this is accomplished. I have used textcrawler to find these arguments within the folders/files in the DITA-OT directories and have found them, in what I think are the following relevant files:

 build_init.xml:

<!-- Related links to output: none, all, nofamily -->
    <condition property="include.rellinks" value="">
      <equals arg1="${args.rellinks}" arg2="none"/>
    </condition>
    <condition property="include.rellinks" value="#default friend sample external other">
      <equals arg1="${args.rellinks}" arg2="nofamily"/>
    </condition>
    <condition property="include.rellinks" value="#default parent child sibling friend next previous cousin ancestor descendant sample external other">
      <or>
        <equals arg1="${args.rellinks}" arg2="all"/>
        <not><isset property="args.rellinks"/></not>
      </or>
    </condition>

build.xml:

<condition property="args.rellinks" value="none">
      <or>
        <equals arg1="${args.fo.include.rellinks}" arg2="none"></equals>
        <not><isset property="args.fo.include.rellinks"></isset></not>
        <istrue value="${disableRelatedLinks}"></istrue>
      </or>
    </condition>
    <condition property="args.rellinks" value="all">
      <equals arg1="${args.fo.include.rellinks}" arg2="all"></equals>
    </condition>
    <condition property="args.rellinks" value="nofamily">
      <equals arg1="${args.fo.include.rellinks}" arg2="nofamily"></equals>
    </condition>
    <condition property="args.rellinks" value="none">
      <not><isset property="args.rellinks"></isset></not>
    </condition>

and

<condition property="args.fo.include.rellinks" value="">
      <not><isset property="args.fo.include.rellinks"></isset></not>
    </condition>


My question is in what file, and what part of the "code" is the modification made?

Thanks for any help you can give,

Rob

Roger Hadley

unread,
Nov 15, 2014, 12:42:55 PM11/15/14
to dita-o...@googlegroups.com
Put the parameters in an ant build file and then use the ant build file to trigger your DITAOT build. Find example ant build files at ..\samples\ant_sample\

-Roger

Rob Echlin

unread,
Nov 15, 2014, 4:50:08 PM11/15/14
to Roger Hadley, dita-o...@googlegroups.com
Your CMS has a place to put the parameters to use to kick off the DITA-OT.
Add this to them.
It is a command line parameter, so look at the docs for 1.7.5 to see what the syntax of the command line is.

For instance, in the Ixiasoft DITA CMS, you put these parameters in an Ant project file, in what Ixiasoft calls the Output Generator.

All my very best,
Rob
 


On Saturday, November 15, 2014 12:43 PM, Roger Hadley <hadley...@gmail.com> wrote:
Put the parameters in an ant build file and then use the ant build file to trigger your DITAOT build. Find example ant build files at ..\samples\ant_sample\

-Roger

On Friday, November 14, 2014 7:21:39 AM UTC-8, Robert Berman wrote:
Hi all,

I'm very new to all of this and was hoping someone out there can help me out. We are using a CCMS to store and publish our DITA content. The CCMS uses the DITA-OT (version 1.7.5) and RenderX xep to publish to PDF. I'm attempting to get the output to publish the related topics at the end of the topic using reltables in the bookmap. I have researched this and have found that I need to set args.rellinks or possibly args.fo.include.rellinks to "all" or "nofamily" to get links to appear. My issue is I'm not entirely sure in what file and what part of the file this is accomplished. I have used textcrawler to find these arguments within the folders/files in the DITA-OT directories and have found them, in what I think are the following relevant files:

 build_init.xml:

<!-- Related links to output: none, all, nofamily -->
    <condition property="include.rellinks" value="">
      <equals arg1="${args.rellinks}" arg2="none"/>
    </condition>
    <condition property="include.rellinks" value="#default friend sample external other">
      <equals arg1="${args.rellinks}" arg2="nofamily"/>
    </condition>
    <condition property="include.rellinks" value="#default parent child sibling friend next previous cousin ancestor descendant sample external other">
      <or>
        <equals arg1="${args.rellinks}" arg2="all"/>
        <not><isset property="args.rellinks"/></ not>
      </or>
    </condition>

build.xml:

<condition property="args.rellinks" value="none">
      <or>
        <equals arg1="${args.fo.include. rellinks}" arg2="none"></equals>
        <not><isset property="args.fo.include. rellinks"></isset></not>
        <istrue value="${disableRelatedLinks}" ></istrue>
      </or>
    </condition>
    <condition property="args.rellinks" value="all">
      <equals arg1="${args.fo.include. rellinks}" arg2="all"></equals>
    </condition>
    <condition property="args.rellinks" value="nofamily">
      <equals arg1="${args.fo.include. rellinks}" arg2="nofamily"></equals>
    </condition>
    <condition property="args.rellinks" value="none">
      <not><isset property="args.rellinks"></ isset></not>
    </condition>

and

<condition property="args.fo.include. rellinks" value="">
      <not><isset property="args.fo.include. rellinks"></isset></not>
    </condition>


My question is in what file, and what part of the "code" is the modification made?

Thanks for any help you can give,

Rob
--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Julio Vazquez

unread,
Nov 16, 2014, 7:54:48 AM11/16/14
to dita-o...@googlegroups.com
You can also pass three argument in with the command that calls three IT. see the IT user's guide.
Reply all
Reply to author
Forward
0 new messages