syeshin | f3d0d4b | 2005-07-27 18:33:03 +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 | *******************************************************************************/ --> |
syeshin | 8f07783 | 2005-09-06 04:22:45 +0000 | [diff] [blame] | 16 | <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 17 | <title>Adding notations</title> |
syeshin | 8f07783 | 2005-09-06 04:22:45 +0000 | [diff] [blame] | 18 | </head> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 19 | <body id="taddnot"><a name="taddnot"><!-- --></a> |
| 20 | |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 21 | <h1 class="topictitle1">Adding notations</h1> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 22 | <div><p>A notation is a means of associating a binary description with |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 23 | an entity or attribute. The most common uses of notations are to include familiar |
| 24 | types of binary references, such as GIFs and JPGs, in an XML file.</p> |
| 25 | <div class="section"><p>For example, you are making a catalogue of your clothing and want |
| 26 | to include an image of one of your shirts. You would have to create a notation |
| 27 | like this: <kbd class="userinput"><notation name="My_Shirt" system="GIF"></notation></kbd> which |
| 28 | defines a notation for a GIF image.</p> |
| 29 | <p>The following instructions were written for the Resource perspective, but |
| 30 | they will also work in many other perspectives.</p> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 31 | <p>To |
| 32 | create a notation, follow these steps:</p> |
| 33 | </div> |
| 34 | <ol><li class="skipspace"><span>Open your XML schema in the XML schema editor.</span></li> |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 35 | <li class="skipspace"><span>In the Outline view, right-click your XML schema and click |
| 36 | <b> <span class="uicontrol">Add |
| 37 | Notation</span></b>.</span></li> |
| 38 | <li class="skipspace"><span>In the Properties view, type the name of the notation in the |
| 39 | <b> <span class="uicontrol">Name</span></b> field.</span></li> |
| 40 | <li class="skipspace"><span>Click the <b> <span class="uicontrol">Other</span></b> tab.</span></li> |
| 41 | <li class="skipspace"><span>In the <b> <span class="uicontrol">public</span></b> field, type a public identifier.</span> This is optional if you enter a value in the |
| 42 | <b> <span class="uicontrol">system</span></b> field.</li> |
| 43 | <li class="skipspace"><span>In the <b> <span class="uicontrol">system</span></b> field, type a URI reference.</span> This is optional if you enter a value in the |
| 44 | <b> <span class="uicontrol">public</span></b> field.</li> |
| 45 | <li class="skipspace"><span>Click the <b> <span class="uicontrol">Documentation</span></b> tab if you want |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 46 | to provide any information about this notation.</span> The <span class="uicontrol">Documentation</span> page |
| 47 | is used for human readable material, such as a description, and the <span class="uicontrol">App |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 48 | Info</span> page can be used to provide information for applications.</li> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 49 | </ol> |
| 50 | </div> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 51 | </body> |
| 52 | </html> |