blob: 44c98c0d69de08035e8137b5bd8cac787f4e9c0e [file] [log] [blame]
<?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">
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Adding a group</title>
</head>
<body id="taddgrup"><a name="taddgrup"><!-- --></a>
<h1 class="topictitle1">Adding a group</h1>
<div><p>A group consists of element declarations, wildcards, and other
content model groups. When you create a group, it automatically contains a
content model.</p><div class="skipspace"><p></p>
<p>The following instructions were written for the Resource
perspective, but they will also work in many other perspectives. </p>
<p>To
add a group, follow these steps:</p>
</div>
<ol><li class="skipspace"><span>Open your XML schema in the XML schema editor.</span></li>
<li class="skipspace"><span>In the Outline view, select your schema.</span> The entire
schema and its contents should be displayed in the Graph view.</li>
<li class="skipspace"><span>In the Graph view, right click in the <b>Groups</b> section and
click <span class="uicontrol">Add Group</span>.</span></li>
<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>
<li class="skipspace"><span>Click the <span class="uicontrol">Documentation</span> tab if you want
to provide any information about this group element.</span> The <span class="uicontrol">Documentation</span> page
is used for human readable material, such as a description, and the <span class="uicontrol">App
Info</span> page can be used to provide information for applications. </li>
<li class="skipspace"><span>In the Outline view, expand the <span class="uicontrol">Groups</span> folder
and your new group.</span></li>
<li class="skipspace"><span>Your group automatically contains a content model. </span> A
group's content model is the representation of any data that may be contained
inside the group. For more information about working with content models,
refer to the related tasks.</li>
</ol>
</div>
<div><p><b class="reltaskshd">Related tasks</b><br />
<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 />
<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 />
</p>
</div><p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>