Adobe Framemaker does not recognize cross-reference from XML file
I have an XML file, which I want to generate a Framemaker (tried with both 11 and 2017) document out of it. The following extract shows only the issue-related part:
XML-File (CrossReferenceExample.xml):
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Root [
<!ELEMENT Root (Section)>
<!ELEMENT Section (Paragraph*)>
<!ELEMENT Paragraph ANY>
<!ELEMENT XRef EMPTY>
<!ATTLIST XRef type CDATA #REQUIRED>
<!ATTLIST XRef text CDATA #REQUIRED>
<!ELEMENT HRef EMPTY>
<!ATTLIST HRef format CDATA #REQUIRED>
<!ATTLIST HRef refid CDATA #REQUIRED>
<!ATTLIST HRef sourcefile CDATA #IMPLIED>
]>
<Root>
<Section>
<Paragraph>Hello <XRef type="Cross-Ref" text="world-link"/>world.</Paragraph>
<Paragraph>Here is the link: <HRef format="Page" refid="world-link"/></Paragraph>
</Section>
</Root>
Read/write rules (read_write_rules.fm):
element "HRef" {
is fm cross-reference element;
attribute "refid" is fm property cross-reference id;
}
element "XRef" {
is fm marker element;
marker text is attribute;
}
Application definition:
Application name: create_reference_example
Read/write rules: read_write_rules.fm
Import procedure:
File -> Open: CrossReferenceExample.xml
Use Structured Application: create_reference_example -> ok
=> Alert CrossReferenceExample.xml contains unresolved cross-references. ... -> OK
File opens, XRef seems to be fine, but:
HRef shows "<WHITESPACE>", where as "page 1" would be expected, because the format was selected as "Page".
