Skip to main content
Participant
March 9, 2016
Answered

specify cross-reference format in read/write rules?

  • March 9, 2016
  • 1 reply
  • 379 views

How can I specify a cross-reference format in the read/rules when importing xml document?

This topic has been closed for replies.
Correct answer Lynne A. Price

Gary,

   If you want all occurrences of the xref element to use the same format, you can either specify the format in an InitialObjectFormat rule in the EDD or use a r/w rule in the form:

  element "figref"

  {

      is fm cross-reference element;

      fm property cross-reference format value is "Figure";

   }

If you want to use different formats and have a particular element specify which one, you can define an attribute whose value is the format name with a rule such as:

  element "xref"

  {

    is fm cross-reference element;

    attribute "xref-fmt' is fm property cross-reference format;

  }

In fact, if your DTD defines an attribute called "format", FM by default uses it for this purpose.

   --Lynne

1 reply

Lynne A. PriceCorrect answer
Inspiring
March 9, 2016

Gary,

   If you want all occurrences of the xref element to use the same format, you can either specify the format in an InitialObjectFormat rule in the EDD or use a r/w rule in the form:

  element "figref"

  {

      is fm cross-reference element;

      fm property cross-reference format value is "Figure";

   }

If you want to use different formats and have a particular element specify which one, you can define an attribute whose value is the format name with a rule such as:

  element "xref"

  {

    is fm cross-reference element;

    attribute "xref-fmt' is fm property cross-reference format;

  }

In fact, if your DTD defines an attribute called "format", FM by default uses it for this purpose.

   --Lynne