blob: 4ecbf9a3650cdf67fd39a8bd63d7308a9a36bba1 [file] [log] [blame]
<?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 lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Specifying an implicit document type for an HTML, XHTML, or JSP fragment" />
<meta content="DOCTYPE declarations, implicit for fragments, document types, HTML fragments, implicit document types, JSP fragments, XHTML fragments, implicit document type for fragments" name="DC.subject" />
<meta content="DOCTYPE declarations, implicit for fragments, document types, HTML fragments, implicit document types, JSP fragments, XHTML fragments, implicit document type for fragments" name="keywords" />
<meta content="XHTML" name="DC.Format" />
<meta content="tjchgxdt" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<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="section"> <p>An <em>implicit</em> 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="stepexpand"><span>From the Project Explorer view, select the HTML, XHTML, or JSP
fragment.</span></li>
<li class="stepexpand"><span>Select <span><span class="uicontrol">Properties</span></span> from the file's
pop-up menu.</span></li>
<li class="stepexpand"><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>