EDD example for crossreferences and markers
Lynne A. Price
lprice at txstruct.com
Wed Apr 15 11:09:42 PDT 2009
At 02:09 AM 4/15/2009, Surbhi Singhal wrote:
>Could anyone please share some working sample examples on roundtripping (EDD
>-> XML - > EDD) for Cross-references and Markers.
Surbhi,
Does your application have a DTD or read/write rules?
FrameMaker by default represents a marker element in XML in the form <tag
type = "Index" text = "blah"/> where tag is the element name and type and
text are attributes that exist in XML but not FrameMaker. As the names
imply, type is set to the marker type and text to the marker text. If your
application has a DTD but the DTD does not define the attributes, they are
not generated. There are read/write rules that allow you to change the
attribute names and to put the marker text in the element's content rather
than an attribute value. Framemaker writes non-element markers as
processing instructions.
Element-based cross-references export as empty elements with an XML-only
attribute for the cross-reference format and one that indicates the source
of the cross-reference. For internal cross-references, the latter is named
id unless the FrameMaker element has an IDREF attribute, in which case the
name of the first such FrameMaker element is used. For external
cross-references, the attribute name is srcfile. Again, if you have a DTD,
the XML-only attributes are only generated if they are declared.
--Lynne
Lynne A. Price
Text Structure Consulting, Inc.
Specializing in structured FrameMaker consulting, application development,
and training
lprice at txstruct.com http://www.txstruct.com
voice/fax: (510) 583-1505 cell phone: (510) 421-2284
More information about the framers
mailing list