blob: fab83e25d55e7c1dec30978f84cf267d330d8aa0 [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 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>
</body>
</html>