| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html> |
| <head> |
| <link rel="stylesheet" type="text/css" href="../org.eclipse.platform.help.doc/book.css" /> |
| <title>Specifying an implicit document type for an HTML, XHTML, or JSP fragment</title> |
| <script language="JavaScript"> |
| function popup_window( url, id, width, height ) |
| { |
| popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' ); |
| popup.focus(); |
| } |
| </script><script language="JavaScript" src="help/liveHelp.js"></script></head> |
| <body id="tjchgxdt"><a name="tjchgxdt"><!-- --></a> |
| |
| <h1 class="topictitle1">Specifying an implicit document type for an HTML, XHTML, or JSP fragment</h1> |
| <div><div class="skipspace"> <p>An <i>implicit</i> document type is used for content assist (CTRL+Spacebar), |
| |
| the Properties view, and other editing contexts when no DOCTYPE declaration |
| |
| is specified in an HTML, XHTML, or JSP file. Typically, this feature is used |
| |
| for a fragment (partial document) that can be included in other pages using |
| |
| JSP include or server-side include.</p> |
| <p>To assign an implicit document type |
| |
| to an HTML, XHTML, or JSP fragment, do the following: </p> |
| </div> |
| <ol><li class="skipspace"><span>From the Project Explorer view, select the HTML, XHTML, or JSP |
| |
| fragment.</span></li> |
| <li class="skipspace"><span>Select <span><span class="uicontrol">Properties</span></span> from the file's |
| |
| pop-up menu.</span></li> |
| <li class="skipspace"><span>In the <span class="uicontrol">Web Content Settings</span> page, select |
| |
| the desired DOCTYPE from the <span><span class="uicontrol">Document type</span></span> drop-down |
| |
| list.</span> <p>The <span><span class="uicontrol">Properties</span></span> dialog |
| |
| for Web projects also includes an <span><span class="uicontrol">Web Content Settings</span></span> page, |
| |
| where you can specify project-default HTML document type. This setting will |
| |
| be used if no DOCTYPE declaration is specified in the file, and no default |
| |
| document type is specified in the <span><span class="uicontrol">Web Content Settings</span></span> page |
| |
| on the <span><span class="uicontrol">Properties</span></span> dialog for the file.</p> |
| </li> |
| </ol> |
| </div> |
| <p> |
| (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved. |
| </p> |
| </body> |
| </html> |