How to Avoid the Insertion of the DOCTYPE Declaration

LANSA Web Functions

How to Avoid the Insertion of the DOCTYPE Declaration

If your applications do not conform to the XHTML 1.0 specification and you want to avoid the insertion of the DOCTYPE declaration in your pages, follow these steps:

Step 1. Replace the Transitional DOCTYPE declaration with a blank line

Using the LANSA for the Web Function Editor, modify the special page DTD_TRANSITIONAL in your partition and replace it with a blank space (You cannot save an empty page).

Step 2. Replace the Frameset DOCTYPE declaration with a blank line

Using the LANSA for the Web Function Editor Editor, modify the special page DTD_FRAMESET in your partition and replace it with a blank space (You cannot save an empty page).

Step 3. Do not include the RDML DTD merge tag in custom Spooled File Utility Pages

If you have created your own custom versions of STDPRINT, STDREPORTLIST or STDREPORT pages, do not include the <RDML MERGE="&DTD_TRANSITIONAL"> tag in those pages. The Spooled File Utility retrieves the special DOCTYPE pages from partition 'WEB' and language 'ENG' and not from your current partition.