blob: 458da4d6374f6478c8998073e65d7b757ed52674 [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>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. You can place your cursor in any of the following items
and press the F3 key to jump to the item it refers to. 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><div class="skipspace"><ul><li>Element or attribute declaration's type</li>
<li> Restriction (you jump to the base type it refers to) </li>
<li> List (you jump to the type it refers to) </li>
<li> Union (you jump to the type it refers to) </li>
<li>Element references</li>
<li>Key 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>
</ul>
<p>For example, if you place your cursor anywhere in the bolded text
below and click 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 bolded
text below 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><p><b class="relconceptshd">Related concepts</b><br />
<a href="../topics/cxmlsced.html" title="XML schemas are an XML language for describing and constraining the content of XML files. ">XML schema editor</a><br />
</p>
</div>
</body>
</html>