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="taddelmr" xml:lang="en-us">
|
| 7 | <title>Adding element references</title>
|
| 8 | <titlealts>
|
| 9 | <searchtitle>Adding element references</searchtitle>
|
| 10 | </titlealts>
|
| 11 | <shortdesc>An element reference provides a reference to a global element.
|
| 12 | A declaration that references a global element enables the referenced global
|
| 13 | element to appear in the instance document in the context of the referencing
|
| 14 | declaration.</shortdesc>
|
| 15 | <prolog><metadata>
|
kprice | 9623e9d | 2007-05-03 03:43:05 +0000 | [diff] [blame] | 16 | <keywords><indexterm>XML schema editor<indexterm>element references</indexterm></indexterm>
|
| 17 | <indexterm>XML schema files<indexterm>element references</indexterm></indexterm>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 18 | </keywords>
|
| 19 | </metadata></prolog>
|
| 20 | <taskbody>
|
| 21 | <context><p>The following instructions were written for the Resource perspective,
|
| 22 | but they will also work in many other perspectives.</p><p>To add an element
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 23 | reference:</p></context>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 24 | <steps>
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 25 | <step><cmd>In the Design view, right-click the content model you want to work
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 26 | with and click <uicontrol>Add Element Ref</uicontrol>.</cmd><stepresult>If
|
| 27 | no global element is defined in the document, a new global element is created
|
| 28 | for you, and the element reference will point to it.</stepresult></step>
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 29 | <step><cmd>Select the element reference. To specify values for an element
|
| 30 | reference:</cmd>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 31 | <choices>
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 32 | <choice>Click the name of the element reference in the Design view. Enter
|
| 33 | the name of the element reference.</choice>
|
kprice | 9623e9d | 2007-05-03 03:43:05 +0000 | [diff] [blame] | 34 | <choice>Click the element reference type in the Design view.
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 35 | Select a type from the menu, or select <uicontrol>Browse</uicontrol> for more
|
| 36 | options.</choice>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 37 | </choices>
|
| 38 | </step>
|
| 39 | <step><cmd>(Optional) Select the appropriate value in the <uicontrol>MinOccurs</uicontrol> field.</cmd>
|
| 40 | <info>This is the number of times the global element referenced can appear
|
| 41 | in an instance document. If you want the element to be optional, select <uicontrol>0</uicontrol>.
|
| 42 | Otherwise, select <uicontrol>1</uicontrol>. </info></step>
|
| 43 | <step><cmd>(Optional) Select the appropriate value in the <uicontrol>MaxOccurs</uicontrol> field.</cmd>
|
| 44 | <info>This is the maximum number of times the global element referenced can
|
| 45 | appear. You can select <uicontrol>unbounded</uicontrol> to indicate there
|
| 46 | is no maximum number of occurrences.</info></step>
|
| 47 | <step><cmd>Click the <uicontrol>Documentation</uicontrol> tab if you want
|
| 48 | to provide any information about this element reference.</cmd><info>The <uicontrol>Documentation</uicontrol> page
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 49 | is used for human readable material, such as a description.</info></step>
|
| 50 | <step><cmd>Click the <uicontrol>Extensions</uicontrol> tab if you want to
|
| 51 | add application information elements to your annotations of schema components.</cmd>
|
| 52 | <info>The <uicontrol>Extensions</uicontrol> page allows you to specify the
|
| 53 | schema and add XML content to your annotations.</info></step>
|
kprice | 159fa58 | 2006-05-08 21:30:45 +0000 | [diff] [blame] | 54 | </steps>
|
| 55 | </taskbody>
|
| 56 | </task>
|
kprice | 647b735 | 2006-05-17 21:27:16 +0000 | [diff] [blame] | 57 | <?Pub *0000003232?>
|