blob: d68bd69ece7f838239ec4a753fa10b235355da27 [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 reference</title>
</head>
<body id="taddgrpr"><a name="taddgrpr"><!-- --></a>
<h1 class="topictitle1">Adding group references</h1>
<div><p>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.</p><div class="skipspace">The menu option to add a group reference only appears if there are
groups defined elsewhere in the document.<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 reference, follow these steps:</p>
</div>
<ol><li class="skipspace"><span>In the Outline view, right-click the content model you want to
work with and select <b> <span class="uicontrol">Add Group Ref</span></b>.</span></li>
<li class="skipspace"><span>Select the new group reference.</span></li>
<li class="skipspace"><span>In the Properties view, select the group you want to refer to in
the <b> <span class="uicontrol">ref</span></b> list.</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 reference.</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>
</ol>
</div>
<div><p><b class="reltaskshd">Related tasks</b><br />
<a href="../topics/taddgrup.html" title="A group consists of element declarations, wildcards, and other content model groups. When you create a group, it automatically contains a content model.">Adding a group</a><br />
</p>
</div>
</body>
</html>