kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
| 2 | <!--Arbortext, Inc., 1988-2005, v.4002-->
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 3 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
|
| 4 | "task.dtd">
|
| 5 | <?Pub Inc?>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 6 | <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
|
| 12 | in a document. Once declared, a global attribute can be referenced in one
|
| 13 | or more declarations using an attribute reference.</shortdesc>
|
| 14 | <prolog><metadata>
|
kprice | 9623e9d | 2007-05-03 03:43:05 +0000 | [diff] [blame] | 15 | <keywords><indexterm>XML schema editor<indexterm>global attributes</indexterm></indexterm>
|
| 16 | <indexterm>XML schema files<indexterm>global attributes</indexterm></indexterm>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 17 | </keywords>
|
| 18 | </metadata></prolog>
|
| 19 | <taskbody>
|
| 20 | <context><p>The following instructions were written for the Resource perspective,
|
| 21 | but they will also work in many other perspectives.</p><p>To add a global
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 22 | attribute:</p></context>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 23 | <steps>
|
| 24 | <step><cmd>Open your XML schema in the XML schema editor.</cmd></step>
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 25 | <step><cmd>In the Design view, right-click in the <b>Attributes</b> section
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 26 | and click <uicontrol>Add Attribute</uicontrol>.</cmd></step>
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 27 | <step><cmd>In the Properties view, enter a name for the attribute in the <uicontrol>Name</uicontrol> field.</cmd>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 28 | </step>
|
| 29 | <step><cmd>In the Properties view, you can select the attribute <uicontrol>Type</uicontrol> from
|
| 30 | the predefined list in the menu next to the <uicontrol>Type</uicontrol> field.</cmd>
|
kprice | 9623e9d | 2007-05-03 03:43:05 +0000 | [diff] [blame] | 31 | <info><p>Alternatively, you can select <uicontrol>Browse</uicontrol> from
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 32 | the list for more options. </p><p>The Set Type dialog will appear, and lists
|
| 33 | all built-in and user-defined types currently available. You can change the <uicontrol>Scope</uicontrol> of
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 34 | the list by selecting one of the following options:<ul>
|
| 35 | <li><uicontrol>Workspace</uicontrol>. Lists all of the types available in
|
| 36 | your workspace. </li>
|
| 37 | <li><uicontrol>Enclosing Project</uicontrol>. Lists all of the types available
|
| 38 | in the project that contains your file. </li>
|
| 39 | <li>(Default) <uicontrol>Current Resource</uicontrol>. List all of the types
|
| 40 | available in your current file.</li>
|
| 41 | <li><uicontrol>Working Sets</uicontrol>. List all the types available within
|
| 42 | the 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
|
| 46 | to provide any information about this global attribute.</cmd><info>The <uicontrol>Documentation</uicontrol> page
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 47 | is used for human readable material, such as a description.</info></step>
|
| 48 | <step><cmd>Click the <uicontrol>Extensions</uicontrol> tab if you want to
|
| 49 | add application information elements to your annotations of schema components.</cmd>
|
| 50 | <info>The <uicontrol>Extensions</uicontrol> page allows you to specify the
|
| 51 | schema and add XML content to your annotations.</info></step>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 52 | </steps>
|
| 53 | </taskbody>
|
| 54 | </task>
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 55 | <?Pub *0000003230?>
|