Skip to main content
FabianK007
Known Participant
August 14, 2018
Answered

Remove Document Specific Declarations

  • August 14, 2018
  • 1 reply
  • 347 views

Dear all,

I would like to know how and why the following lines appear from time to time in xml files:

<!-- Begin Document Specific Declarations -->

<?Fm Validation Off?>

<!-- End Document Specific Declarations -->

I couldn't reproduce the behavior. My colleagues and I all have FM15 and we use presumably the same configuration.

We are sharing the files:

  • only 1 workstation generates theses annoying (from a scripting POV) declarations. But only from time to time.
  • when files containing the declarations are processed on other workstations, the declarations are removed upon saving.

Where do I have to look to find the reason for the declarations generation? How do I suppress the declarations?

Regards

PS: a similar question: Suppress FM comments in Doctype declaration

This topic has been closed for replies.
Correct answer Russ Ward

Hi,

I found this on page 317 of the FM12 Structure Developers Guide. Hope it helps.

Generating processing instructions on export

By default, FrameMaker creates processing instructions under the following circumstances:

• When the exported markup turns out to be invalid, the software generates a

<?FM Validation Off?> PI. When importing an XML or SGML instance with this PI in its

DTD subset, FrameMaker imports the complete file whether it is valid or not.

Russ

1 reply

Russ WardCorrect answer
Legend
August 14, 2018

Hi,

I found this on page 317 of the FM12 Structure Developers Guide. Hope it helps.

Generating processing instructions on export

By default, FrameMaker creates processing instructions under the following circumstances:

• When the exported markup turns out to be invalid, the software generates a

<?FM Validation Off?> PI. When importing an XML or SGML instance with this PI in its

DTD subset, FrameMaker imports the complete file whether it is valid or not.

Russ