Copy link to clipboard
Copied
How can I specify a cross-reference format in the read/rules when importing xml document?
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
...Copy link to clipboard
Copied
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