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 | 15e1cc4 | 2005-08-26 04:13:17 +0000 | [diff] [blame] | 6 | <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] | 7 | <title>Creating notations </title> |
syeshin | 15e1cc4 | 2005-08-26 04:13:17 +0000 | [diff] [blame] | 8 | </head> |
syeshin | 17ed4a6 | 2005-07-25 17:10:24 +0000 | [diff] [blame] | 9 | <body id="creatingnotations"><a name="creatingnotations"><!-- --></a> |
| 10 | |
| 11 | <h1 class="topictitle1">Creating notations </h1> |
| 12 | <div><p>Notations are means of associating a binary description with an |
| 13 | entity or attribute. The most common uses of notations are to include familiar |
| 14 | types of binary references, such as GIFs and JPGs, in an XML file.</p><div class="skipspace"><p>For example, you are making a catalogue of your clothing and want |
| 15 | to include an image of one of your shirts. You would have to create a notation |
| 16 | similar to this one: <samp class="codeph"><!NOTATION myshirt SYSTEM "GIF"></samp> which |
| 17 | defines a notation for a GIF image.</p> |
| 18 | <p>To create a notation, follow these |
| 19 | steps:</p> |
| 20 | </div> |
| 21 | <ol><li class="skipspace"><span>Open your DTD in the DTD editor.</span></li> |
| 22 | <li class="skipspace"><span>In the Outline view, right-click the DTD <img src="../images/nDTDFile.gif" alt="Image of the DTD icon" /> and select <span class="uicontrol">Add Notation </span>. </span></li> |
| 23 | <li class="skipspace"><span>In the Properties view, type the name of the notation in the <span class="uicontrol">Name</span> field.</span></li> |
| 24 | <li class="skipspace"><span>(Optional) In the <span class="uicontrol">Public ID</span> field, type |
| 25 | any information you want to supply to the user or application. For example, |
| 26 | a description of what the notation refers to.</span></li> |
| 27 | <li class="skipspace"><span>In the <span class="uicontrol">System ID</span> field, type any information |
| 28 | to be passed along to the application dealing with the binary data. For example, |
| 29 | a URL.</span></li> |
| 30 | <li class="skipspace"><span>Click the <span class="uicontrol">Documentation</span> tab if you want |
| 31 | to provide any information about this notation.</span> The <span class="uicontrol">Documentation</span> page |
| 32 | is used for human readable material, such as a description of the notation |
| 33 | contents.</li> |
| 34 | </ol> |
| 35 | </div> |
| 36 | |
| 37 | <div> |
| 38 | <p> |
| 39 | <b class="parentlink">Parent topic:</b> <a href="../topics/tedtdtd.html" title="You can edit DTD files in both the Outline view and the Source view. Modifying the content of a DTD determines what can be used in any XML file that is associated with it.">Editing DTDs</a><br /> |
| 40 | </p> |
| 41 | <p><b class="reltaskshd">Related tasks</b><br /> |
| 42 | <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 /> |
| 43 | </p> |
| 44 | </div> |
| 45 | <p> |
| 46 | (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved. |
| 47 | </p> |
| 48 | </body> |
| 49 | </html> |