| <?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 by placing your cursor in the appropriate item and clicking | |
| 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> | |
| </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 click F3:</p> | |
| <p> <tt class="sysout"><element | |
| name="shipTo" type="po:USAddress"></element></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"><element ref="po:ContactElement"></element></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="XML schemas are an XML language for describing and constraining the content of XML files.">XML schema editor</a></div> | |
| </div> | |
| </div></body> | |
| </html> |