blob: f7b145b9fe187b020cdbf7ae09663fc2d80d8f37 [file] [log] [blame]
kprice159fa582006-05-08 21:30:45 +00001<?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">
2<html lang="en-us" xml:lang="en-us">
syeshinf3d0d4b2005-07-27 18:33:03 +00003<head>
kprice159fa582006-05-08 21:30:45 +00004<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
kpricef7e6ec12009-05-18 21:39:37 +00005<meta name="copyright" content="Copyright (c) 2000, 2009 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" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2009" />
kprice159fa582006-05-08 21:30:45 +00007<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
10<meta content="task" name="DC.Type" />
11<meta name="DC.Title" content="Adding global attributes" />
12<meta name="abstract" content="A global attribute is an attribute that can be recognized anywhere in a document. Once declared, a global attribute can be referenced in one or more declarations using an attribute reference." />
13<meta name="description" content="A global attribute is an attribute that can be recognized anywhere in a document. Once declared, a global attribute can be referenced in one or more declarations using an attribute reference." />
kpricede20a692008-04-24 00:27:47 +000014<meta content="XML schema editor, global attributes, XML schema files" name="DC.subject" />
15<meta content="XML schema editor, global attributes, XML schema files" name="keywords" />
kprice159fa582006-05-08 21:30:45 +000016<meta content="XHTML" name="DC.Format" />
17<meta content="taddglba" name="DC.Identifier" />
18<meta content="en-us" name="DC.Language" />
19<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
20<title>Adding global attributes</title>
syeshin8f077832005-09-06 04:22:45 +000021</head>
syeshinf3d0d4b2005-07-27 18:33:03 +000022<body id="taddglba"><a name="taddglba"><!-- --></a>
23
kprice159fa582006-05-08 21:30:45 +000024
syeshind0bdb8e2005-10-27 17:44:14 +000025<h1 class="topictitle1">Adding global attributes</h1>
kprice159fa582006-05-08 21:30:45 +000026
27
28
29
30<div><p>A global attribute is an attribute that can be recognized anywhere
31in a document. Once declared, a global attribute can be referenced in one
32or more declarations using an attribute reference.</p>
33
34<div class="section"><p>The following instructions were written for the Resource perspective,
35but they will also work in many other perspectives.</p>
syeshinf3d0d4b2005-07-27 18:33:03 +000036<p>To add a global
kpricede20a692008-04-24 00:27:47 +000037attribute, complete the following steps:</p>
syeshinf3d0d4b2005-07-27 18:33:03 +000038</div>
kprice159fa582006-05-08 21:30:45 +000039
40<ol>
41<li class="stepexpand"><span>Open your XML schema in the XML schema editor.</span></li>
42
kprice43d0c0f2006-05-18 15:56:09 +000043<li class="stepexpand"><span>In the Design view, right-click in the <strong>Attributes</strong> section
kprice159fa582006-05-08 21:30:45 +000044and click <span class="uicontrol">Add Attribute</span>.</span></li>
45
kprice43d0c0f2006-05-18 15:56:09 +000046<li class="stepexpand"><span>In the Properties view, enter a name for the attribute in the <span class="uicontrol">Name</span> field.</span>
kprice159fa582006-05-08 21:30:45 +000047</li>
48
49<li class="stepexpand"><span>In the Properties view, you can select the attribute <span class="uicontrol">Type</span> from
50the predefined list in the menu next to the <span class="uicontrol">Type</span> field.</span>
kprice43d0c0f2006-05-18 15:56:09 +000051 <p>Alternatively, you can select <span class="uicontrol">Browse</span> from
52the list for more options. </p>
53<div class="p">The Set Type dialog will appear, and lists
54all built-in and user-defined types currently available. You can change the <span class="uicontrol">Scope</span> of
kprice159fa582006-05-08 21:30:45 +000055the list by selecting one of the following options:<ul>
kpricede20a692008-04-24 00:27:47 +000056<li><span class="uicontrol">Workspace</span>: lists all of the types available in
syeshind0bdb8e2005-10-27 17:44:14 +000057your workspace. </li>
kprice159fa582006-05-08 21:30:45 +000058
kpricede20a692008-04-24 00:27:47 +000059<li><span class="uicontrol">Enclosing Project</span>: lists all of the types available
syeshind0bdb8e2005-10-27 17:44:14 +000060in the project that contains your file. </li>
kprice159fa582006-05-08 21:30:45 +000061
kpricede20a692008-04-24 00:27:47 +000062<li>(Default) <span class="uicontrol">Current Resource</span>: list all of the types
syeshind0bdb8e2005-10-27 17:44:14 +000063available in your current file.</li>
kprice159fa582006-05-08 21:30:45 +000064
kpricede20a692008-04-24 00:27:47 +000065<li><span class="uicontrol">Working Sets</span>: list all the types available
66within the selected working set.</li>
kprice159fa582006-05-08 21:30:45 +000067
syeshind0bdb8e2005-10-27 17:44:14 +000068</ul>
syeshinf3d0d4b2005-07-27 18:33:03 +000069</div>
kprice159fa582006-05-08 21:30:45 +000070<p>Select the type you want in the type list, then click <span class="uicontrol">OK</span>. </p>
71
72</li>
73
74<li class="stepexpand"><span>Click the <span class="uicontrol">Documentation</span> tab if you want
75to provide any information about this global attribute.</span> The <span class="uicontrol">Documentation</span> page
kprice43d0c0f2006-05-18 15:56:09 +000076is used for human readable material, such as a description.</li>
77
78<li class="stepexpand"><span>Click the <span class="uicontrol">Extensions</span> tab if you want to
79add application information elements to your annotations of schema components.</span>
80 The <span class="uicontrol">Extensions</span> page allows you to specify the
81schema and add XML content to your annotations.</li>
kprice159fa582006-05-08 21:30:45 +000082
83</ol>
84
85</div>
86
87
syeshinf3d0d4b2005-07-27 18:33:03 +000088</body>
89</html>