blob: d9809bd9943b2d7b8a8e8ab275b1f9c5177b9554 [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>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<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 groups</h1>
<div><p>When you create a group, it automatically contains a content model.
The content model is a representation of any data that can be grouped together
by the group, such as elements, element references, and group references.</p>
<div class="section"><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"><b>Add Group</b>.</span></span></li>
<li class="skipspace"><span>In the Properties view, type a new name for the group in the
<b> <span class="uicontrol">Name</span></b> field.</span></li>
<li class="skipspace"><span>Click the <b> <span class="uicontrol">Documentation</span></b> 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 <b> <span class="uicontrol">Groups</span></b> 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>
</body>
</html>