Page 1 of 1

How to set "nofamily" value for args.fo.include.rellinks?

Posted: Thu Mar 17, 2011 5:09 pm
by shanet
Title pretty much says it all. I would like to use this value instead of "Default" or "yes."

I tried adding this as a possible value in the dita.framework and ditamap.framework files, but no joy. The UI still restricts me from entering "nofamily".

Suggestions?

Re: How to set "nofamily" value for args.fo.include.rellinks?

Posted: Thu Mar 17, 2011 6:02 pm
by Radu
Hi,

You are right, in an older version of the DITA Open Toolkit the parameter was limited to "yes".
So we should update this predefined parameter to allow all values defined in the specification:
http://dita-ot.sourceforge.net/quicksta ... rties.html
This issue will be fixed in Oxygen 12.2.
Until then you can edit the build file:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/build.xml

and set the value of this argument:

<arg line='"antArgsIncludeRelatedLinks=${args.fo.include.rellinks}"'/>

hard coded to:

<arg line='"antArgsIncludeRelatedLinks=nofamily"'/>

Regards,
Radu

Re: How to set "nofamily" value for args.fo.include.rellinks?

Posted: Thu Mar 17, 2011 9:06 pm
by shanet
Thanks for the excellent info! I took it one step further and replaced

Code: Select all

<arg line='"antArgsIncludeRelatedLinks=${args.fo.include.rellinks}"'/>
with

Code: Select all

<arg line='"antArgsIncludeRelatedLinks=${custom.include.rellinks}"'/>
This lets me set the value in my transformation scenario using my parameter custom.include.rellinks.

Again, thanks!

Shane

Re: How to set "nofamily" value for args.fo.include.rellinks?

Posted: Wed Mar 23, 2011 8:32 pm
by daveg
Is there a simple way to set this to print only the link and page number, without the short description following it?

And thanks for the solution above! I thought I was stuck with all or none of those related links!

Re: How to set "nofamily" value for args.fo.include.rellinks?

Posted: Thu Mar 24, 2011 10:44 am
by Radu
Hi,

You are probably referring to the fact that the short description from the referenced topics are also shown in the related links.

In the XSLT stylesheet
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/demo/fo/xsl/fo/links.xsl

there is an xsl:template:
<xsl:template name="insertLinkShortDesc">

and you can comment for example the entire <xsl:choose> block.

Regards,
Radu

Re: How to set "nofamily" value for args.fo.include.rellinks?

Posted: Thu Mar 24, 2011 1:51 pm
by daveg
Thanks Radu, that was exactly what I was talking about and your suggestion worked perfectly.