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> |
| 28 | <div class="p"><span>In the Navigator view, right-click the DTD and click <span class="menucascade"><span class="uicontrol">Validate DTD File</span></span>.</span></div> |
| 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 |
| 33 | allowed by selecting <span class="menucascade"><span class="uicontrol">Properties</span> > <span class="uicontrol">Validation</span></span> from the project's pop-up menu and specifying the maximum number |
| 34 | of error messages allowed. You might have to select the <span class="uicontrol">Override |
| 35 | validation preferences</span> check box in order to enable the <span class="uicontrol">Maximum |
| 36 | number of validation messages</span> field</p> |
| 37 | <p>You can set up project's |
| 38 | properties so that different types of project resources are automatically |
| 39 | validated when you save them. From a project's pop-up menu select <span class="uicontrol">Properties</span>, |
| 40 | then select <span class="uicontrol">Validation</span>. Any validators you can run |
| 41 | against your project will be listed in the Validation page. </p> |
| 42 | </div> |
| 43 | </div> |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 44 | </body> |
| 45 | </html> |