<!ELEMENT extension (index | indexProvider)+>
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT index EMPTY>
file CDATA #REQUIRED>
an index contribution made by supplying an XML file
Configuration Markup for index file:
<!ELEMENT index (entry)* >
<!ELEMENT entry (entry | topic |see)* >
<!ATTLIST entry keyword CDATA #REQUIRED >
<!ELEMENT topic EMPTY >
<!ATTLIST topic href CDATA #REQUIRED >
<!ATTLIST topic title CDATA #IMPLIED >
<!ELEMENT see (subpath)* >
<!ATTLIST see keyword CDATA #REQUIRED >
<!ELEMENT subpath EMPTY >
<!ATTLIST subpath keyword CDATA #IMPLIED >
The index element
The index element represents an instance of index. Index consists of entries, each of them corresponds to a particular keyword. All contributed indexes are merged to one master index which the Help System provides to the user. When index is built, entries are appended in alphabetical order.
The entry element
The entry element represents a keyword of the index. Each entry may contain several links to help topics which associated with the keyword. Entry can also be a container for other entries (subentries) to form hierarchy of keywords. It is allowed to entry to be a container for subentries and to have topics simultaneously.
The topic element
The topic element provides reference to help content related to the keyword. The href attribute is relative to the plug-in that manifest file belongs to. If you need to access a file in another plug-in, you can use the syntax
<topic label="topic in another plug-in" href="../other.plugin.id/concepts/some_other_file.html"/>
The title attribute is used to name the link to help content when multiple topics are associated with the single keyword. If the attribute is not specified, the title comes from the label attribute if present otherwise from a TOC which owns the link. If the link does not belong to any TOC, the title or label attribute must be specified, or else the title becomes undefined.
The see element The see element represents a synonym to an entry in the index. Clicking on a see link will cause the index to navigate to the index entry for which this is a synonym. The keyword attribute represents the top level element for the synonym. The subpath elements are used only if the synonym is not at the top level of the index and represent additional components of the synonym path.
<!ELEMENT indexProvider EMPTY>
class CDATA #REQUIRED>
(since 3.3) an index contribution made by plugging in code
(in file plugin.xml)
<extension point="org.eclipse.help.index"> <indexProvider class="com.myplugin.MyIndexProvider"/> </extension> <extension point="org.eclipse.help.index"> <index file="index.xml"/> </extension>
(in file index.xml)
<topic href="airplane.html" title="History of aviation"/>
<topic href="jet.html" title="Jet engine"/>
<entry keyword="Wankel engine">
<entry keyword="Jet engine">
Internationalization The index XML files can be translated and the resulting copy (with translated keywords) should be placed in nl/<language>/<country> or nl/<language> directory. The <language> and <country> stand for two letter language and country codes as used in locale codes. For example, Traditional Chinese translations should be placed in the nl/zh/TW directory. The nl/<language>/<country> directory has a higher priority than nl/<language>. Only if no file is found in the nl/<language>/<country>, the file residing in nl/<language> will be used. The the root directory of a plugin will be searched last.
Copyright (c) 2006 Intel Corporation and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0