blob: 76f1fee297df1346f2e3f953219ff36bebbe1e12 [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 lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<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))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Navigating XML schemas" />
<meta name="abstract" content="When you are working in the Source view, you can use F3 to navigate through the file by placing your cursor in the appropriate item and pressing F3 to jump to the item it refers to." />
<meta name="description" content="When you are working in the Source view, you can use F3 to navigate through the file by placing your cursor in the appropriate item and pressing F3 to jump to the item it refers to." />
<meta content="XML schema files, navigating" name="DC.subject" />
<meta content="XML schema files, navigating" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/cxmlsced.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tnavsrc" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Navigating XML schemas</title>
</head>
<body id="tnavsrc"><a name="tnavsrc"><!-- --></a>
<h1 class="topictitle1">Navigating XML schemas</h1>
<div><p>When you are working in the Source view, you can use F3 to navigate
through the file by placing your cursor in the appropriate item and pressing
F3 to jump to the item it refers to. </p>
<div class="section"><p>You can jump to any of the following items:</p>
<ul>
<li>Element or attribute declaration's type</li>
<li>Element references</li>
<li>Group references</li>
<li>Attribute references</li>
<li>Attribute group references</li>
<li>Import, include, and redefine element (the external schema will open in
the XML schema editor. This only works with schemas in the workspace).</li>
<li />
</ul>
<p>You must place your cursor exactly in the location of
the reference (for example between the double quotes for <tt class="sysout">type
= " "</tt> or <tt class="sysout">base = " "</tt>).</p>
<p>For
example, if you place your cursor anywhere in the following text and press
F3:</p>
<p> <tt class="sysout">&lt;element name="shipTo" type="po:USAddress"&gt;&lt;/element&gt;</tt> </p>
<p>the
cursor will automatically jump to the location in the file where the type
USAddress is defined.</p>
<p>Or, if you place your cursor anywhere in the following
text and click F3:</p>
<p> <tt class="sysout">&lt;element ref="po:ContactElement"&gt;&lt;/element&gt;</tt> </p>
<p>the
cursor will automatically jump to the location in the file where the global
element ContactElement is defined.</p>
<p>This works across files. For example,
if the type you have selected is defined in another XML schema and you click
F3, you will automatically be taken to that file.</p>
</div>
</div>
<div><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../topics/cxmlsced.html" title="This product provides an XML schema editor for creating, viewing, and validating XML schemas. XML schemas are a formal specification of element names that indicates which elements are allowed in an XML file, and in which combinations.">XML schema editor</a></div>
</div>
</div>
</body>
</html>