Skip to main content
Rsfl
Inspiring
April 8, 2014
Question

Format a text-crossref

  • April 8, 2014
  • 1 reply
  • 614 views

Hi all,

in the DITA EDD the fm-xref element does not suport any formatting in itself it seems. Thus we use the crossref-definitions in the Framemaker template to apply a chracter style (simple underlined blue). However, if you insert a crossref that contains a text string as anchor (e.g. "For more information, click here.") then it is not possible to apply a formatting.

How can such a crossref be formatted? Does the EDD offer any possibilities?

Robert

This topic has been closed for replies.

1 reply

ScottPrentice
Inspiring
April 8, 2014

Hi Robert...

You'll need to edit the EDD to add a context rule that applies a character tag to text in an fm-xref that has no @outputclass attribute. This may work, but might not as well since the processing that happens to build the cross-ref may wipe out this formatting. The reason you'd check for an @outputclass value is that when you select to use "Format" rather than "Text" FM assigns the cross-ref format name to the fm-xref as outputclass="fm:FORMATNAME" .. but when you select "Text", it doesn't add an @outputclass value, so that's what you'd check for.

It would be nice if you could set your own @outputclass value, but it appears that (in FM11) FM wipes out any @outputclass that you set on an fm-xref. If FM supported both the fm-xref and the xref, this wouldn't be a problem .. but they removed that support in FM9.

DITA-FMx supports both models which allows greater flexibility when creating cross-refs.

Cheers,

...scott

Scott Prentice

Leximation, Inc.

www.leximation.com

Rsfl
RsflAuthor
Inspiring
April 10, 2014

Hi Scott,

not sure if I understood correctly.. the EDD does not support the definition of a text formatting rule for fm-xref elements or am I missing something? Otherwise I would simply apply a character format for all contexts.

Robert

ScottPrentice
Inspiring
April 11, 2014

Sorry Robert .. I think you're right. I forgot that the fmx-ref is defined as a "Cross-Ref", which has limited formatting options. If FM-DITA supported both xref and fm-xref, you wouldn't have this problem. Yet another reason they should support both Unfortunately, there's nothing you can do without some very custom FDK or ExtendScript coding.

...scott