blob: 719033f32c2e8e091f72420f740b24f1bfa529fb [file] [log] [blame]
kprice159fa582006-05-08 21:30:45 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--Arbortext, Inc., 1988-2005, v.4002-->
kprice647b7352006-05-17 21:27:16 +00003<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
4 "task.dtd">
5<?Pub Inc?>
kprice159fa582006-05-08 21:30:45 +00006<task id="taddglba" xml:lang="en-us">
7<title>Adding global attributes</title>
8<titlealts>
9<searchtitle>Adding global attributes</searchtitle>
10</titlealts>
11<shortdesc>A global attribute is an attribute that can be recognized anywhere
12in a document. Once declared, a global attribute can be referenced in one
13or more declarations using an attribute reference.</shortdesc>
14<prolog><metadata>
kprice9623e9d2007-05-03 03:43:05 +000015<keywords><indexterm>XML schema editor<indexterm>global attributes</indexterm></indexterm>
16<indexterm>XML schema files<indexterm>global attributes</indexterm></indexterm>
kprice159fa582006-05-08 21:30:45 +000017</keywords>
18</metadata></prolog>
19<taskbody>
20<context><p>The following instructions were written for the Resource perspective,
21but they will also work in many other perspectives.</p><p>To add a global
kprice647b7352006-05-17 21:27:16 +000022attribute:</p></context>
kprice159fa582006-05-08 21:30:45 +000023<steps>
24<step><cmd>Open your XML schema in the XML schema editor.</cmd></step>
kprice647b7352006-05-17 21:27:16 +000025<step><cmd>In the Design view, right-click in the <b>Attributes</b> section
kprice159fa582006-05-08 21:30:45 +000026and click <uicontrol>Add Attribute</uicontrol>.</cmd></step>
kprice647b7352006-05-17 21:27:16 +000027<step><cmd>In the Properties view, enter a name for the attribute in the <uicontrol>Name</uicontrol> field.</cmd>
kprice159fa582006-05-08 21:30:45 +000028</step>
29<step><cmd>In the Properties view, you can select the attribute <uicontrol>Type</uicontrol> from
30the predefined list in the menu next to the <uicontrol>Type</uicontrol> field.</cmd>
kprice9623e9d2007-05-03 03:43:05 +000031<info><p>Alternatively, you can select <uicontrol>Browse</uicontrol> from
kprice647b7352006-05-17 21:27:16 +000032the list for more options. </p><p>The Set Type dialog will appear, and lists
33all built-in and user-defined types currently available. You can change the <uicontrol>Scope</uicontrol> of
kprice159fa582006-05-08 21:30:45 +000034the list by selecting one of the following options:<ul>
35<li><uicontrol>Workspace</uicontrol>. Lists all of the types available in
36your workspace. </li>
37<li><uicontrol>Enclosing Project</uicontrol>. Lists all of the types available
38in the project that contains your file. </li>
39<li>(Default) <uicontrol>Current Resource</uicontrol>. List all of the types
40available in your current file.</li>
41<li><uicontrol>Working Sets</uicontrol>. List all the types available within
42the selected working set.</li>
43</ul></p><p>Select the type you want in the type list, then click <uicontrol>OK</uicontrol>. </p></info>
44</step>
45<step><cmd>Click the <uicontrol>Documentation</uicontrol> tab if you want
46to provide any information about this global attribute.</cmd><info>The <uicontrol>Documentation</uicontrol> page
kprice647b7352006-05-17 21:27:16 +000047is used for human readable material, such as a description.</info></step>
48<step><cmd>Click the <uicontrol>Extensions</uicontrol> tab if you want to
49add application information elements to your annotations of schema components.</cmd>
50<info>The <uicontrol>Extensions</uicontrol> page allows you to specify the
51schema and add XML content to your annotations.</info></step>
kprice159fa582006-05-08 21:30:45 +000052</steps>
53</taskbody>
54</task>
kprice647b7352006-05-17 21:27:16 +000055<?Pub *0000003230?>