blob: 419823c82bf9ff539e36dfaf287157019633308d [file] [log] [blame]
syeshin17ed4a62005-07-25 17:10:24 +00001<?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>
syeshin15e1cc42005-08-26 04:13:17 +00006<link rel="stylesheet" type="text/css" href="../org.eclipse.wst.doc.user/common.css" />
syeshin17ed4a62005-07-25 17:10:24 +00007<title>Creating notations </title>
syeshin15e1cc42005-08-26 04:13:17 +00008</head>
syeshin17ed4a62005-07-25 17:10:24 +00009<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
13entity or attribute. The most common uses of notations are to include familiar
14types 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
15to include an image of one of your shirts. You would have to create a notation
16similar to this one: <samp class="codeph">&lt;!NOTATION myshirt SYSTEM "GIF"&gt;</samp> which
17defines a notation for a GIF image.</p>
18<p>To create a notation, follow these
19steps:</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
25any information you want to supply to the user or application. For example,
26a 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
28to be passed along to the application dealing with the binary data. For example,
29a URL.</span></li>
30<li class="skipspace"><span>Click the <span class="uicontrol">Documentation</span> tab if you want
31to provide any information about this notation.</span> The <span class="uicontrol">Documentation</span> page
32is used for human readable material, such as a description of the notation
33contents.</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>