
162
ADOBE GOLIVE CS2
User Guide
To convert the doctype of a document from HTML to XHTML
1
Do one of the following:
•
To convert a single document, choose Markup from the document window menu
in the Layout Editor, and
then choose Convert to XHTML. The Convert To XHTML dialog box opens.
•
To convert multiple documents, open a site, select files you want to convert, and then choose Special > Convert >
To XHTML. The Convert To XHTML dialog box opens.
2
To make your converted XHTML document compatible with more browsers, select the following options to set
how GoLive converts the document from HTML To XHTML:
Write <?xml?>
Choose Always to always include the <?xml?> declaration, choose Except UTF to include the decla
ration unless the page’s encoding is set to UTF-8 or UTF-16 (<?xml?> declarations are not required if the document’s
encoding is set to UTF-8 or UTF-16), or choose Never to never include the declaration.
Wrap <style> Content Into CDATA
Wraps all of the text inside stylesheets to conform to the XHTML specification.
Wrap <script> Content Into CDATA
Wraps all of the text inside scripts to conform to the XHTML specification.
Note:
Some browsers can’t display scripts and styles wrapped in CDATA. You can choose to wrap scripts and styles in
comments instead of CDATA: Choose Edit > Web Settings, click the Global tab, and choose Comments from the Wrap
Scripts In and Wrap CSS In menus.
Put A Space Character In Front Of “/>”
Converts empty tags such as <empty> to <empty /> instead of <empty/>
(no blank space before the slash). This option helps make your document compatible with some browsers that can't
handle end tags that have the correct syntax according to standards published by the W3C.
Remove <meta> Encoding Element
Removes the meta encoding element from the head section because the
starting XML element contains encoding information.
Remove Encoding Information If It Is UTF-8
Removes the encoding information if it is UTF-8, which is the default
encoding for XML.
3
Use the following options to set how you want GoLive to handle the conversion of the name attribute used in the
following elements: a, form, img, and map. The conversion of the name attribute can cause compatibility problems
in some browsers. HTML requires the name attribute for functionality, but the XHTML Strict DTD doesn’t allow the
name attribute in those elements.
Do Not Touch
Does not change the name attribute or its value. For example, <form name="formName">
remains <form name="formName"> after conversion.
Copy To Attribute “ID”
Copies the name attribute and its value to an ID attribute. For example, <form
name="formName"> becomes <form name="formName" ID="formName"> after conversion.
Convert To Attribute “ID”
Converts the name attribute to an ID attribute. For example, <form name="formName">
becomes <form ID="formName"> after conversion.
Note:
If you select the Do Not Touch option or the Copy To Attribute “ID” option and your document has an XHTML
Strict doctype, the Syntax Checker reports an error on the name attribute, but the document works correctly in a browser.
If you select the Convert To Attribute “ID” option, and your document has an XHTML Strict doctype, the Syntax
Checker doesn’t report an error, but the document might not work correctly in a browser.
4
Click OK.
Summary of Contents for GOLIVE CS2
Page 1: ...Chapter 1 Copyright User Guide...
Page 251: ...ADOBE GOLIVE CS2 242 User Guide...