| <?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"> |
| <!-- /******************************************************************************* |
| * 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 |
| *******************************************************************************/ --> |
| <html> |
| <head> |
| <link rel="stylesheet" type="text/css" href="../org.eclipse.wst.doc.user/common.css" /> |
| <title>Referential integrity in the DTD editor</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="rrefint"><a name="rrefint"><!-- --></a> |
| |
| <h1 class="topictitle1">Referential integrity in the DTD editor</h1> |
| <div><p>The DTD editor has a built-in mechanism to handle referential integrity |
| issues. When you delete or rename certain nodes, clean up for any nodes affected |
| will automatically occur.</p><div class="skipspace">The following table describes the clean up that occurs when you delete |
| or rename certain nodes.</div> |
| |
| <div class="skipspace"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e21"> Action taken</th> |
| <th valign="top" id="d0e23"> Clean up </th> |
| </tr> |
| </thead> |
| <tbody><tr><td valign="top" headers="d0e21 ">An element is renamed.</td> |
| <td valign="top" headers="d0e23 ">All references to that element will be renamed.</td> |
| </tr> |
| <tr><td valign="top" headers="d0e21 ">An external parameter entity is renamed.</td> |
| <td valign="top" headers="d0e23 ">Any external parameter entity references to it will be renamed.</td> |
| </tr> |
| <tr><td valign="top" headers="d0e21 ">A notation is renamed.</td> |
| <td valign="top" headers="d0e23 ">All references to the notation will be renamed.</td> |
| </tr> |
| <tr><td valign="top" headers="d0e21 ">An element is deleted.</td> |
| <td valign="top" headers="d0e23 ">All references to that element will be cleaned up or reset. The original |
| element will be removed from the DTD file, and any references to it will be |
| reset to the next available element. If there are no elements available, references |
| to it will be reset to (#PCDATA).</td> |
| </tr> |
| <tr><td valign="top" headers="d0e21 ">An external parameter entity is deleted.</td> |
| <td valign="top" headers="d0e23 ">Any external parameter entity references to it will automatically be |
| deleted.</td> |
| </tr> |
| <tr><td valign="top" headers="d0e21 ">A notation is deleted.</td> |
| <td valign="top" headers="d0e23 ">All references to the notation will be removed.</td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </div> |
| |
| <div> |
| <p> |
| <b class="parentlink">Parent topic:</b> <a href="../topics/tremvelm.html" title="If you have created elements, attributes, entities, notations, and comments you no longer need, you can delete any of them.">Deleting elements, attributes, entities, notations, and comments</a><br /> |
| </p> |
| </div> |
| <p> |
| (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved. |
| </p> |
| </body> |
| </html> |