Adobe GOLIVE CS2 User Manual page 171

Hide thumbs Also See for GOLIVE CS2:
Table of Contents

Advertisement

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
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.
To make your converted XHTML document compatible with more browsers, select the following options to set
2
how GoLive converts the document from HTML To XHTML:
Choose Always to always include the <?xml?> declaration, choose Except UTF to include the decla­
Write <?xml?>
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
Wrap <script> Content Into CDATA
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 "/>"
(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
starting XML element contains encoding information.
Remove Encoding Information If It Is UTF-8
encoding for XML.
Use the following options to set how you want GoLive to handle the conversion of the name attribute used in the
3
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.
Does not change the name attribute or its value. For example, <form name="formName">
Do Not Touch
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"
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.
Click OK.
4
Wraps all of the text inside stylesheets to conform to the XHTML specification.
Wraps all of the text inside scripts to conform to the XHTML specification.
Converts empty tags such as <empty> to <empty /> instead of <empty/>
Removes the meta encoding element from the head section because the
Removes the encoding information if it is UTF-8, which is the default
Converts the name attribute to an ID attribute. For example, <form name="formName">
ADOBE GOLIVE CS2
User Guide
in the Layout Editor, and
162

Advertisement

Table of Contents
loading

Table of Contents