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

Here should go questions about transforming XML with XSLT and FOP.
shanet
Posts: 6
Joined: Thu Mar 17, 2011 5:05 pm

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

Post by shanet » Thu Mar 17, 2011 5:09 pm

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?
Shane

Radu
Posts: 6589
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Thu Mar 17, 2011 6:02 pm

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

shanet
Posts: 6
Joined: Thu Mar 17, 2011 5:05 pm

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

Post by shanet » Thu Mar 17, 2011 9:06 pm

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
Shane

daveg
Posts: 11
Joined: Fri Oct 15, 2010 11:48 am

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

Post by daveg » Wed Mar 23, 2011 8:32 pm

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!

Radu
Posts: 6589
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Thu Mar 24, 2011 10:44 am

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

daveg
Posts: 11
Joined: Fri Oct 15, 2010 11:48 am

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

Post by daveg » Thu Mar 24, 2011 1:51 pm

Thanks Radu, that was exactly what I was talking about and your suggestion worked perfectly.

Post Reply