blob: f3e6e10bf7b33837fd3baa03e5783363fd98b985 [file] [log] [blame]
syeshinf3d0d4b2005-07-27 18:33:03 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html>
5<head>
syeshinaaa21932005-09-22 17:13:22 +00006<!-- /*******************************************************************************
7 * Copyright (c) 2000, 2005 IBM Corporation and others.
8 * All rights reserved. This program and the accompanying materials
9 * are made available under the terms of the Eclipse Public License v1.0
10 * which accompanies this distribution, and is available at
11 * http://www.eclipse.org/legal/epl-v10.html
12 *
13 * Contributors:
14 * IBM Corporation - initial API and implementation
15 *******************************************************************************/ -->
syeshin8f077832005-09-06 04:22:45 +000016<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
syeshinf3d0d4b2005-07-27 18:33:03 +000017<title>Navigating XML schemas</title>
syeshin8f077832005-09-06 04:22:45 +000018</head>
syeshinf3d0d4b2005-07-27 18:33:03 +000019<body id="tnavsrc"><a name="tnavsrc"><!-- --></a>
syeshinf3d0d4b2005-07-27 18:33:03 +000020<h1 class="topictitle1">Navigating XML schemas</h1>
21<div><p>When you are working in the Source view, you can use F3 to navigate
syeshind0bdb8e2005-10-27 17:44:14 +000022through the file by placing your cursor in the appropriate item and clicking
23F3 to jump to the item it refers to. </p>
24<div class="section"><p>You can jump to any of the following items:</p>
25<ul><li>Element or attribute declaration's type</li>
syeshinf3d0d4b2005-07-27 18:33:03 +000026<li>Element references</li>
syeshinf3d0d4b2005-07-27 18:33:03 +000027<li>Group references</li>
28<li>Attribute references</li>
29<li>Attribute group references</li>
30<li>Import, include, and redefine element (the external schema will open in
31the XML schema editor. This only works with schemas in the workspace).</li>
32</ul>
syeshind0bdb8e2005-10-27 17:44:14 +000033<p>You must place your cursor exactly in the location of the reference
34(for example between the double quotes for <tt class="sysout">type = " "</tt> or
35 <tt class="sysout">base = " "</tt>).</p>
36<p>For example,
37if you place your cursor anywhere in the following text and click F3:</p>
38<p> <tt class="sysout">&lt;element
39name="shipTo" type="po:USAddress"&gt;&lt;/element&gt;</tt> </p>
syeshinf3d0d4b2005-07-27 18:33:03 +000040<p>the
41cursor will automatically jump to the location in the file where the type
42USAddress is defined.</p>
syeshind0bdb8e2005-10-27 17:44:14 +000043<p>Or, if you place your cursor anywhere in the following
44text and click F3:</p>
syeshinf3d0d4b2005-07-27 18:33:03 +000045<p> <tt class="sysout">&lt;element ref="po:ContactElement"&gt;&lt;/element&gt;</tt> </p>
46<p>the
47cursor will automatically jump to the location in the file where the global
48element ContactElement is defined.</p>
49<p>This works across files. For example,
syeshind0bdb8e2005-10-27 17:44:14 +000050if the type you have selected is defined in another XML schema and you click
syeshinf3d0d4b2005-07-27 18:33:03 +000051F3, you will automatically be taken to that file.</p>
52</div>
53</div>
syeshind0bdb8e2005-10-27 17:44:14 +000054<div><div class="relconcepts"><strong>Related concepts</strong><br />
55<div><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></div>
syeshinaaa21932005-09-22 17:13:22 +000056</div>
syeshind0bdb8e2005-10-27 17:44:14 +000057</div></body>
syeshinf3d0d4b2005-07-27 18:33:03 +000058</html>