blob: 02df3a52df612818b86d5c44d90cc0599abe91b2 [file] [log] [blame]
kprice159fa582006-05-08 21:30:45 +00001<?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">
2<html lang="en-us" xml:lang="en-us">
syeshinf3d0d4b2005-07-27 18:33:03 +00003<head>
kprice159fa582006-05-08 21:30:45 +00004<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
kpricede20a692008-04-24 00:27:47 +00005<meta name="copyright" content="Copyright (c) 2000, 2008 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" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
kprice159fa582006-05-08 21:30:45 +00007<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
10<meta content="task" name="DC.Type" />
11<meta name="DC.Title" content="Adding groups" />
12<meta name="abstract" content="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." />
13<meta name="description" content="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." />
kpricede20a692008-04-24 00:27:47 +000014<meta content="XML schema editor, groups, XML schema files" name="DC.subject" />
15<meta content="XML schema editor, groups, XML schema files" name="keywords" />
kprice43d0c0f2006-05-18 15:56:09 +000016<meta scheme="URI" name="DC.Relation" content="../topics/taddgrpr.html" />
17<meta scheme="URI" name="DC.Relation" content="../topics/taddcmod.html" />
kprice159fa582006-05-08 21:30:45 +000018<meta content="XHTML" name="DC.Format" />
19<meta content="taddgrup" name="DC.Identifier" />
20<meta content="en-us" name="DC.Language" />
21<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
22<title>Adding groups</title>
syeshin8f077832005-09-06 04:22:45 +000023</head>
syeshinf3d0d4b2005-07-27 18:33:03 +000024<body id="taddgrup"><a name="taddgrup"><!-- --></a>
25
kprice159fa582006-05-08 21:30:45 +000026
syeshind0bdb8e2005-10-27 17:44:14 +000027<h1 class="topictitle1">Adding groups</h1>
kprice159fa582006-05-08 21:30:45 +000028
29
30
31
syeshind0bdb8e2005-10-27 17:44:14 +000032<div><p>When you create a group, it automatically contains a content model.
33The content model is a representation of any data that can be grouped together
34by the group, such as elements, element references, and group references.</p>
kprice159fa582006-05-08 21:30:45 +000035
36<div class="section"><p />
37<p>The following instructions were written for the Resource
kpricede20a692008-04-24 00:27:47 +000038perspective, but they wsill also work in many other perspectives.</p>
syeshinf3d0d4b2005-07-27 18:33:03 +000039<p>To
kpricede20a692008-04-24 00:27:47 +000040add a group, complete the following steps:</p>
syeshinf3d0d4b2005-07-27 18:33:03 +000041</div>
kprice159fa582006-05-08 21:30:45 +000042
43<ol>
44<li class="stepexpand"><span>Open your XML schema in the XML schema editor.</span></li>
45
46<li class="stepexpand"><span>In the Outline view, right-click <strong>Groups</strong>, and click <span class="uicontrol">Add
47Group</span>.</span></li>
48
49<li class="stepexpand"><span>In the Properties view, type a new name for the group in the <span class="uicontrol">Name</span> field.</span>
50</li>
51
52<li class="stepexpand"><span>Click the <span class="uicontrol">Documentation</span> tab if you want
syeshinf3d0d4b2005-07-27 18:33:03 +000053to provide any information about this group element.</span> The <span class="uicontrol">Documentation</span> page
kprice43d0c0f2006-05-18 15:56:09 +000054is used for human readable material, such as a description.</li>
55
56<li class="stepexpand"><span>Click the <span class="uicontrol">Extensions</span> tab if you want to
57add application information elements to your annotations of schema components.</span>
kpricede20a692008-04-24 00:27:47 +000058 The <span class="uicontrol">Extensions</span> page allows you to specify the
59schema and add XML content to your annotations.</li>
kprice159fa582006-05-08 21:30:45 +000060
61<li class="stepexpand"><span>In the Outline view, expand the <span class="uicontrol">Groups</span> folder
kpricede20a692008-04-24 00:27:47 +000062and your new group.</span> Your group automatically contains a content
63model. A group's content model is the representation of any data that can
64be contained inside the group. For more information about working with content
65models, refer to the related tasks.</li>
kprice159fa582006-05-08 21:30:45 +000066
syeshinf3d0d4b2005-07-27 18:33:03 +000067</ol>
kprice159fa582006-05-08 21:30:45 +000068
syeshinf3d0d4b2005-07-27 18:33:03 +000069</div>
70
kprice43d0c0f2006-05-18 15:56:09 +000071<div><div class="reltasks"><strong>Related tasks</strong><br />
72<div><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 group references</a></div>
73<div><a href="../topics/taddcmod.html" title="A content model is the representation of any data that can be contained inside an element, global element, complex type, or group. It is a formal description of the structure and permissible content of an element, global element, complex type, or group, which may be used to validate a document instance.">Adding content models</a></div>
74</div>
75</div>
kprice159fa582006-05-08 21:30:45 +000076
syeshinf3d0d4b2005-07-27 18:33:03 +000077</body>
78</html>