Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thank you Lynne