Hi Rick...
The import/export client may be expecting attributes or internal
metadata set on that node that you're not including when you create the
<fm-xref> by whatever means you're doing that (since that's a
"temporary" element). The fm-xref is created (from an xref) by the
import/export client on XML open, and converted back to xref on write
back to XML. I'll bet there's something it's setting when it's created
that you're not able to easily see.
Probably best to use <xref> anyway, and set the @format or @outputclass
to the cross-ref format name so it'll do the proper fm-xref conversion
after it's been written to DITA.
Cheers,
...scott
On 12/10/18 12:02 PM, Rick Quatro wrote:
Hi Scott,
Thanks for the reply. I am using FM 2019 with the default application. I
changed the <fm-xref> elements to <xref> before exporting and I get valid
XML. I am still not sure why the r/w rules drop <fm-xref> instead of
converting them to automatically to <xref>.
Rick
-----Original Message-----
From: Framers <[email protected]> On
Behalf Of Scott Prentice
Sent: Monday, December 10, 2018 12:09 PM
To: [email protected]
Subject: Re: [Framers] FrameMaker to DITA xrefs
Hi Rick...
Are you using the default FM DITA structure apps? Does your app definition
include the reference to the default import/export client? On export, that
client should create a proper <xref> from the <fm-xref> (hence, the drop
rule). If you remove this client from the app, you should get <fm-xref>
elements in the XML .. but that may cause other problems. If you're using
XSLT on export, it's possible that may be interfering with the expected
export process .. you might try it without the XSLT first to make sure the
basic processing is working.
Oh .. and what version of FM are you using?
...scott
On 12/10/18 8:34 AM, Rick Quatro wrote:
Hi All,
I am structuring some FrameMaker content to DITA and trying to save an
XML file. Initially, my <fm-xref> elements were getting dropped until
I discovered this R/W rule:
fm element "fm-xref" drop;
I replaced it with this:
element "xref" is fm cross-reference element "fm-xref";
Now I get the <xref> elements, but they are invalid because they look
like
this:
<xref format="FigureCaption" xtrf="FigureCaption" idref="i765173">
The message I get at the FrameMaker console is this:
Error at line 768, char 54, Message: expected end of tag 'xref'
I am content with getting <fm-xref> elements in my output because I am
transforming the files with XSLT anyway, but how do I ensure that
these tags are properly closed? Any help would be appreciated.
Rick
Rick Quatro
Carmen Publishing Inc.
[email protected]
585-729-6746
www.frameexpert.com/store/
Save on energy at quatro.mystream.com
_______________________________________________
This message is from the Framers mailing list
Send messages to [email protected] Visit the list's
homepage at http://www.frameusers.com Archives located at
http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to [email protected]
_______________________________________________
This message is from the Framers mailing list
Send messages to [email protected] Visit the list's homepage at
http://www.frameusers.com Archives located at
http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to [email protected]
_______________________________________________
This message is from the Framers mailing list
Send messages to [email protected]
Visit the list's homepage at http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to [email protected]
_______________________________________________
This message is from the Framers mailing list
Send messages to [email protected]
Visit the list's homepage at http://www.frameusers.com
Archives located at http://www.mail-archive.com/framers%40lists.frameusers.com/
Subscribe and unsubscribe at
http://lists.frameusers.com/listinfo.cgi/framers-frameusers.com
Send administrative questions to [email protected]