| <?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> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 2005 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
| <title>Specifying an implicit document type for an HTML, XHTML, or JSP fragment</title> |
| </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> |
| </body> |
| </html> |