syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 1 | <?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> |
syeshin | aaa2193 | 2005-09-22 17:13:22 +0000 | [diff] [blame] | 6 | <!-- /******************************************************************************* |
| 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 | *******************************************************************************/ --> |
syeshin | 8f07783 | 2005-09-06 04:22:45 +0000 | [diff] [blame] | 16 | <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 17 | <title>Navigating XML schemas</title> |
syeshin | 8f07783 | 2005-09-06 04:22:45 +0000 | [diff] [blame] | 18 | </head> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 19 | <body id="tnavsrc"><a name="tnavsrc"><!-- --></a> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 20 | <h1 class="topictitle1">Navigating XML schemas</h1> |
| 21 | <div><p>When you are working in the Source view, you can use F3 to navigate |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 22 | through the file by placing your cursor in the appropriate item and clicking |
| 23 | F3 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> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 26 | <li>Element references</li> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 27 | <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 |
| 31 | the XML schema editor. This only works with schemas in the workspace).</li> |
| 32 | </ul> |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 33 | <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, |
| 37 | if you place your cursor anywhere in the following text and click F3:</p> |
| 38 | <p> <tt class="sysout"><element |
| 39 | name="shipTo" type="po:USAddress"></element></tt> </p> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 40 | <p>the |
| 41 | cursor will automatically jump to the location in the file where the type |
| 42 | USAddress is defined.</p> |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 43 | <p>Or, if you place your cursor anywhere in the following |
| 44 | text and click F3:</p> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 45 | <p> <tt class="sysout"><element ref="po:ContactElement"></element></tt> </p> |
| 46 | <p>the |
| 47 | cursor will automatically jump to the location in the file where the global |
| 48 | element ContactElement is defined.</p> |
| 49 | <p>This works across files. For example, |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 50 | if the type you have selected is defined in another XML schema and you click |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 51 | F3, you will automatically be taken to that file.</p> |
| 52 | </div> |
| 53 | </div> |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 54 | <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> |
syeshin | aaa2193 | 2005-09-22 17:13:22 +0000 | [diff] [blame] | 56 | </div> |
syeshin | d0bdb8e | 2005-10-27 17:44:14 +0000 | [diff] [blame] | 57 | </div></body> |
syeshin | f3d0d4b | 2005-07-27 18:33:03 +0000 | [diff] [blame] | 58 | </html> |