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> |
| 6 | <link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" /> |
| 7 | <title>Adding a group</title> |
| 8 | <script language="JavaScript"> |
| 9 | function popup_window( url, id, width, height ) |
| 10 | { |
| 11 | popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' ); |
| 12 | popup.focus(); |
| 13 | } |
| 14 | </script><script language="JavaScript" src="help/liveHelp.js"></script></head> |
| 15 | <body id="taddgrup"><a name="taddgrup"><!-- --></a> |
| 16 | |
| 17 | <h1 class="topictitle1">Adding a group</h1> |
| 18 | <div><p>A group consists of element declarations, wildcards, and other |
| 19 | content model groups. When you create a group, it automatically contains a |
| 20 | content model.</p><div class="skipspace"><p></p> |
| 21 | <p>The following instructions were written for the Resource |
| 22 | perspective, but they will also work in many other perspectives. </p> |
| 23 | <p>To |
| 24 | add a group, follow these steps:</p> |
| 25 | </div> |
| 26 | <ol><li class="skipspace"><span>Open your XML schema in the XML schema editor.</span></li> |
| 27 | <li class="skipspace"><span>In the Outline view, select your schema.</span> The entire |
| 28 | schema and its contents should be displayed in the Graph view.</li> |
| 29 | <li class="skipspace"><span>In the Graph view, right click in the <b>Groups</b> section and |
| 30 | click <span class="uicontrol">Add Group</span>.</span></li> |
| 31 | <li class="skipspace"><span>In the Properties view, type a new name for the group in the <span class="uicontrol">Name</span> field.</span></li> |
| 32 | <li class="skipspace"><span>Click the <span class="uicontrol">Documentation</span> tab if you want |
| 33 | to provide any information about this group element.</span> The <span class="uicontrol">Documentation</span> page |
| 34 | is used for human readable material, such as a description, and the <span class="uicontrol">App |
| 35 | Info</span> page can be used to provide information for applications. </li> |
| 36 | <li class="skipspace"><span>In the Outline view, expand the <span class="uicontrol">Groups</span> folder |
| 37 | and your new group.</span></li> |
| 38 | <li class="skipspace"><span>Your group automatically contains a content model. </span> A |
| 39 | group's content model is the representation of any data that may be contained |
| 40 | inside the group. For more information about working with content models, |
| 41 | refer to the related tasks.</li> |
| 42 | </ol> |
| 43 | </div> |
| 44 | |
| 45 | <div><p><b class="reltaskshd">Related tasks</b><br /> |
| 46 | <a href="../topics/taddgrpr.html" title="A group reference is a declaration that references a group. It enables the referenced group to appear in the instance document in the context of the referencing declaration. ">Adding a group reference</a><br /> |
| 47 | <a href="../topics/taddcmod.html" title="You can add a content model to an element, global element, a complex type, or a group. A content model is the representation of any data that may be contained inside the element, global element, complex type, or group.">Adding a content model</a><br /> |
| 48 | </p> |
| 49 | </div><p> |
| 50 | (C) Copyright IBM Corporation 2000, 2005. All Rights Reserved. |
| 51 | </p> |
| 52 | </body> |
| 53 | </html> |