syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE html |
| 3 | PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 4 | <html> |
| 5 | <head> |
syeshin | aaa2193 | 2005-09-22 17:13:22 +0000 | [diff] [blame] | 6 | <!-- /******************************************************************************* |
| 7 | * Copyright (c) 2000, 2005 IBM Corporation and others. |
| 8 | * All rights reserved. This program and the accompanying materials |
| 9 | * are made available under the terms of the Eclipse Public License v1.0 |
| 10 | * which accompanies this distribution, and is available at |
| 11 | * http://www.eclipse.org/legal/epl-v10.html |
| 12 | * |
| 13 | * Contributors: |
| 14 | * IBM Corporation - initial API and implementation |
| 15 | *******************************************************************************/ --> |
| 16 | <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 17 | <title>Validating DTDs</title> |
syeshin | 15e1cc4 | 2005-08-26 04:13:17 +0000 | [diff] [blame] | 18 | </head> |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 19 | <body id="tvaldtd"><a name="tvaldtd"><!-- --></a> |
| 20 | |
| 21 | <h1 class="topictitle1">Validating DTDs</h1> |
| 22 | <div><p>Validating a DTD file lets you verify that it is well formed and |
| 23 | does not contain any errors.</p><div class="skipspace"><p>The following instructions were written for the Resource perspective, |
| 24 | but they will also work in many other perspectives. </p> |
| 25 | <p>To validate |
| 26 | a DTD, follow these steps:</p> |
| 27 | </div> |
syeshin | 6e21104 | 2005-10-27 17:42:51 +0000 | [diff] [blame] | 28 | <div class="p"><span>In the Navigator view, right-click the DTD and click <span class="menucascade"><span class="uicontrol"><b>Validate DTD File</b></span></span>.</span></div> |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 29 | <div class="skipspace">A dialog opens, indicating if the DTD file was successfully validated |
| 30 | or not. If the file is invalid, any errors will appear in the Problems view. |
| 31 | <p><b>Note</b>: If you receive an error message indicating |
| 32 | that the Problems view is full, you can increase the number of error messages |
syeshin | 8e5cd5c | 2005-11-17 18:51:24 +0000 | [diff] [blame] | 33 | allowed by selecting <span class="menucascade"><span class="uicontrol"><b>Properties</span> > <span class="uicontrol">Validation</b></span></span> from the project's pop-up menu and specifying the maximum number |
syeshin | 6e21104 | 2005-10-27 17:42:51 +0000 | [diff] [blame] | 34 | of error messages allowed. You might have to select the <span class="uicontrol"><b>Override |
syeshin | 8e5cd5c | 2005-11-17 18:51:24 +0000 | [diff] [blame] | 35 | validation preferences</span></b> check box in order to enable the <span class="uicontrol"><b>Maximum |
syeshin | 6e21104 | 2005-10-27 17:42:51 +0000 | [diff] [blame] | 36 | number of validation messages</b></span> field.</p> |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 37 | <p>You can set up project's |
| 38 | properties so that different types of project resources are automatically |
syeshin | 6e21104 | 2005-10-27 17:42:51 +0000 | [diff] [blame] | 39 | validated when you save them. From a project's pop-up menu select <b><span class="uicontrol">Properties</span></b>, |
| 40 | then select <span class="uicontrol"><b>Validation</b></span>. Any validators you can run |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 41 | against your project will be listed in the Validation page. </p> |
| 42 | </div> |
| 43 | </div> |
syeshin | 6e21104 | 2005-10-27 17:42:51 +0000 | [diff] [blame] | 44 | |
| 45 | <div> |
| 46 | <p> |
| 47 | <b class="parentlink">Parent topic:</b> <a href="../topics/cworkdtds.html" title="Working with DTDs">Working with DTDs</a><br /> |
| 48 | </p> |
| 49 | |
| 50 | </div> |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 51 | </body> |
| 52 | </html> |