Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Your message raises several issues:
Since FrameMaker 7.1, however, under the default configuration, when you open an XML document, FrameMaker retains the original filename, complete with extension, and when you save the document, FrameMaker creates a new XML representation of the element structure, saving that under the original name and thereby overwriting the original document.
Presumably, this change saves end users the effort of keeping track of separate XML and FrameMaker versions of a file. Even if there are no problems with the XML application you are using, however, opening an XML document in FrameMaker and saving the result is very unlikely to result in an XML document that is character-for-character identical to the original. There are many details of an XML document--order of attributes within a start-tag, some line breaks, etc.--that are incidental to the represented element structure and may not be preserved when you round-trip an XML document through FrameMaker.
Opening an XML document can result in a FrameMaker book. Such a book is always stored in FrameMaker form unless you explicitly save it as XML.
You can restore the FrameMaker 7.0 behavior on Windows by adding
TreatXMLAsXML=Off
to the Preferences section of maker.ini. See the Structure Developer's Guide for the UNIX equivalent. (Make sure to exit FrameMaker before editing maker.ini.)
Read/write rules control various options involving the representation of FrameMaker properties as XML attributes, including the names of the attributes used. In many cases, the default behavior is adequate and no read/write rules are necessary.
If a FrameMaker document has attributes that have the same name as the attribute used to represent a property, FrameMaker can write both the value of the FrameMaker attribute and the value of the property to the same XML start-tag. For example, suppose a four-column table has an attribute named cols with the value "2". FrameMaker might generate a start-tag such as <table cols = "2" cols = "4">. Even if the attribute and property values are the same, it will still write both: <table cols = "2" cols = "2">. Such erroneous XML results from incompatible details of the FrameMaker document, DTD, and read/write rules.
Copy link to clipboard
Copied