Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Multiple Id References for cross-reference element

Community Beginner ,
Dec 09, 2013 Dec 09, 2013

Hello,

I am developing a structured application for MIL-STD-40051, using the MIL-STD-2361 V4.12 DTD. The cross-reference element <xref> has 10 different Id Reference attributes. Each one is for a cross-reference to a specific element. For example @taskid for a step or test, @figid for a figure, @tableid for a table, etc.

FrameMaker uses the first Id Reference it finds in the EDD for <xref>. I found this out by changing the order.

Is there any way to get FrameMaker to use a specific Id Reference depending on the element being cross-referenced? I have been trying to find something in the r/w rules to do this. No luck.

Regards,

Stan

TOPICS
Structured
426
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Dec 09, 2013 Dec 09, 2013

Stan,

    There's no way to change FM's association of the source of a cross-reference with the first idref attribute declared for a cross-reference element. Since there's no way to enforce that the source is a particular type of element (e.g., a figure or a table), that's probably what you want. In the situation you describe, I'd probably use one idref attribute in FM and 10 in XML and use XSLT to go back and forth.

    I suppose you could do something like declare 11 idref attributes in FM, let FM use the first one, and set the appropriate one of the remaining 10 via an FDK client or script. Then, you could use a r/w rule to drop the first one on XML export. On XML import, you could use XSLT to rename the one idref attribute that has a value to be the first FM attribute. Using XSLT in both directions and avoiding other custom programming is probably much easier.

             --Lynne

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 10, 2013 Dec 10, 2013
LATEST

Thank you Lynne

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines