1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451
|
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.help" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.help" id="toc" name="Table of Contents (TOC)"/>
</appInfo>
<documentation>
For registering an online help contribution for an individual plug-in.
<p>Each plug-in that contributes help files should in general do the following:
<ul>
<ul>
<li>
create TOC files that describe the table of contents for the help and the necessary
topic interleaving. See the syntax below.</li>
<li>
the plugin.xml file should extend the <tt>org.eclipse.help.toc</tt> extension
point and specify TOC file(s).</li>
</ul>
</ul>
<p>Optionally, a search index can be prebuilt and registered using <code>index</code> element in order to improve the performance of the first search attempt. Only one index per plug-in can be registered - multiple <code>index</code> elements will result in undefined behaviour.
</documentation>
</annotation>
<element name="extension">
<annotation>
<appInfo>
<meta.element />
</appInfo>
</annotation>
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="toc"/>
<element ref="tocProvider"/>
<element ref="index"/>
<element ref="tocIcon"/>
<element ref="placeholder"/>
</choice>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="toc">
<annotation>
<documentation>
a toc contribution made by supplying an XML file
</documentation>
</annotation>
<complexType>
<attribute name="file" type="string" use="required">
<annotation>
<documentation>
the name of the TOC file which contains the table of contents or section for this plug-in's online help.
<p>
<i><b>Configuration Markup for toc file:</b></i>
<p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT toc (topic | anchor | link)* ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST toc link_to CDATA #IMPLIED ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST toc label CDATA #REQUIRED ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST toc topic CDATA #IMPLIED ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST toc sort CDATA #IMPLIED ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST toc icon CDATA #IMPLIED ></tt>
<p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT topic (topic | anchor | link )*
></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST topic label CDATA #REQUIRED ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST topic href CDATA #IMPLIED ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST topic sort CDATA #IMPLIED ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST topic icon CDATA #IMPLIED ></tt>
<p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT anchor EMPTY ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST anchor id ID&nbsp; #REQUIRED ></tt>
<p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT link EMPTY ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST link toc CDATA #REQUIRED ></tt>
<p>In general, a plug-in that needs to provide online help will define
its own TOC files. In the end, the help system is configured to be launched
as some actions, and the path of the TOC file can be used to do so.
<p><b>The topic element</b>
<p>All help topic element are contributed as part of the toc container
element. They can have a hierarchical structure, or can be listed as a
flat list.
<p>The topic element is the workhorse of structure of Table of Contents.
There are two typical uses for the topic element:
<p>1.&nbsp; To provide a link to a documentation file - usually an HTML
file.
<br>2.&nbsp; To act as a container for other toc, either in the same manifest
or another.
<p><b><i>1.&nbsp; Topics as links</i></b>
<br>The simplest use of a topic is as a link to a documentation file.
<p><tt>&lt;topic label="Some concept file" href="concepts/some_file.html"
/></tt>
<p>The href attribute is relative to the plug-in that the manifest file
belongs to.&nbsp; If you need to access a file in another plug-in, you
can use the syntax
<p><tt>&lt;topic label="topic in another plug-in" href="../other.plugin.id/concepts/some_other_file.html"
/></tt>
<p><b><i>2.&nbsp; Topics as containers</i></b>
<br>The next most common use of a topic is to use it as a container for
other toc.&nbsp; The container topic itself can always refer to a particular
file as well.
<p><tt>&lt;topic label="Integrated Development Environment" href="concepts/ciover.htm"
></tt>
<br><tt>&nbsp; &lt;topic label="Starting the IDE" href="concepts/blah.htm"
/></tt>
<br><tt>&nbsp; ...</tt>
<br><tt>&lt;/topic></tt>
<p> If the sort attribute is true child topics will be sorted alphabetically.</p><p> The
optional icon attribute allows the use of a different icon as defined by a
&lt; tocIcon &gt; element in an org.eclipse.help.toc extension.</p>
<p><b>The link element</b>
<p>The link element allows to link Table of Contents defined in another
toc file.&nbsp; All the topics from the toc file specified in the toc attribute
will appear in the table of contents as if they were defined directly in
place of the link element.&nbsp; To include toc from api.xml file you could
write
<p><tt>&lt;topic label="References" ></tt>
<br><tt>&nbsp; ...</tt>
<br><tt>&nbsp; &lt;link toc="api.xml" /></tt>
<br><tt>&nbsp; ...</tt>
<br><tt>&lt;/topic></tt>
<p><b>The anchor element</b>
<p>The anchor element defines a point that will allow linking other toc
files to this navigation, and extending it, without using the link element
and referencing other toc files from here.&nbsp; To allow inserting Table
of Contents with more topics after the "ZZZ" document you would define
an anchor as follows:
<p><tt>...</tt>
<br><tt>&lt;topic label="zzz" href="zzz.html" /></tt>
<br><tt>&lt;anchor id="moreapi" /></tt>
<br><tt>...</tt>
<p><b>The toc element</b>
<p>The toc element is a Table of Contents that groups topics and other
elements defined in this file.&nbsp; The label identifies the table of
contents to the user, when it is displayed to the user.&nbsp;</p><p> The optional topic
attribute is the path to a topic file describing the TOC.&nbsp; </p>
<p> If the sort attribute is true child topics will be sorted alphabetically.</p><p> The
optional icon attribute allows the use of a different icon as defined by a
&lt; tocIcon &gt; element in an org.eclipse.help.toc extension.</p><p>The optional
link_to attribute allows for linking toc from this file into another toc
file being higher in the navigation hierarchy.&nbsp; The value of the link_to
attribute must specify an anchor in another toc file. To link toc from
myapi.xml to api.xml file, specified in another plugin you would use
the syntax
<p><tt>&lt;toc link_to="../anotherPlugin/api.xml#moreapi" label="My Tool
API"/></tt>
<br><tt>...</tt>
<br><tt>&lt;toc /></tt>
<p>where # character separates toc file name from the anchor identifier.
</p>
<p><b>Filters</b>
<p><a href = "../../guide/ua_dynamic_filters.htm">Filters</a> can be used to make parts of the TOC conditional. One possible use for filters is to show a set of topics only if a specific plugin is installed.
</p>
<br>
</documentation>
<appInfo>
<meta.attribute kind="resource"/>
</appInfo>
</annotation>
</attribute>
<attribute name="primary" type="boolean" use="default" value="false">
<annotation>
<documentation>
specifies whether the TOC file is a primary table of contents and is meant to be the master table of contents,
or not primary and intended to be integrated into another table of contents.
</documentation>
</annotation>
</attribute>
<attribute name="extradir" type="string">
<annotation>
<documentation>
specifies a plug-in relative path to a directory containing additional documents that are associated with the table of contents. All help documents in this directory, and all subdirectories, will be indexed and accessible through the documentation search, even if the documents are not in the table of contents. Note: the directory must be within the declaring plug-in (e.g. "../my.other.plugin/path" is invalid)
</documentation>
</annotation>
</attribute>
<attribute name="category" type="string">
<annotation>
<documentation>
specifies the category of TOCs to which this one belongs. This applies only to primary TOCs. Categories are used to group together related books. The value must be a string that uniquely identifies the category.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="tocProvider">
<annotation>
<documentation>
(<b>since 3.3</b>) a toc contribution made by plugging in code
</documentation>
</annotation>
<complexType>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
the implementation class for the toc provider. This class must implement the <samp>org.eclipse.help.AbstractTocProvider</samp> interface.
</documentation>
<appInfo>
<meta.attribute kind="java" basedOn="org.eclipse.help.AbstractTocProvider"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="index">
<annotation>
<documentation>
(<b>since 3.1</b>) an optional element that allows declaration of prebuilt search index created from documents contributed by this plug-in.
</documentation>
</annotation>
<complexType>
<attribute name="path" type="string" use="required">
<annotation>
<documentation>
a plug-in-relative path of the prebuilt search index. The index referenced by the path must exist. Missing index will be flagged in the log file. Note that each locale must have a different index. If a plug-in contributes index directories for multiple locales, it should append the locale using standard Eclipse NLS lookup. (e.g. <code>index/</code>, <code>nl/ja/JP/index/</code>, <code>nl/en/US/index/</code> etc.).
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="tocIcon">
<annotation>
<documentation>
(<b>since 3.5</b>) an optional element that allows the icon to be specified for elements in a toc. Once a tocIcon has been declared it can be specified in a topic or toc using the "icon" attribute, for example &lt;toc label="Sample Table of Contents" topic="html/toc.html" icon="myicon"&gt;
</documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
The unique id of this icon. Typically this id will include the name of the plugin in which it is declared.
</documentation>
</annotation>
</attribute>
<attribute name="openIcon" type="string" use="required">
<annotation>
<documentation>
The path of an icon to be used for a toc or topic whose chidren have been expanded.
</documentation>
<appInfo>
<meta.attribute kind="resource"/>
</appInfo>
</annotation>
</attribute>
<attribute name="closedIcon" type="string">
<annotation>
<documentation>
The path of an icon to be used for a toc or topic whose chidren have been expanded. If no provided openIcon will be used.
</documentation>
<appInfo>
<meta.attribute kind="resource"/>
</appInfo>
</annotation>
</attribute>
<attribute name="leafIcon" type="string">
<annotation>
<documentation>
The path of an icon to be used for a toc or topic without children. If not provided openIcon will be used.
</documentation>
<appInfo>
<meta.attribute kind="resource"/>
</appInfo>
</annotation>
</attribute>
<attribute name="altText" type="string">
<annotation>
<documentation>
Text that will be used in the "alt" attribute for the img tag in the web presentation.
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="placeholder">
<annotation>
<documentation>
A placeholder is used for products where the documentation is installed as an additional step. The placeholder specifies a help page which will be presented to the user if help is opened and a documentation bundle is not installed. Typically this help page would contain information about how to install the documentation.
Each placeholder specifies a bundle or list of bundles and a help page which will be displayed if one or more of the bundles in the list is not installed
</documentation>
</annotation>
<complexType>
<attribute name="plugin" type="string">
<annotation>
<documentation>
The name of a help plug-in for which this is a placeholder.
</documentation>
</annotation>
</attribute>
<attribute name="placeholderPage" type="string">
<annotation>
<documentation>
The page to show when the plug-in is not installed.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section type="examples"/>
</appInfo>
<documentation>
The following is an example of using the <samp>toc</samp> extension point.
<p>(in file <tt>plugin.xml</tt>)
<pre>
<extension point="org.eclipse.help.toc">
<toc file="toc1.xml" primary="true"/>
<toc file="toc2.xml" primary="true" category="myCategory"/>
<toc file="task.xml"/>
<toc file="sample.xml" extradir="samples"/>
<index path="index/"/>
</extension>
</pre>
</p>
<p>(in file <tt>maindocs.xml</tt>)
<blockquote><tt>&lt;toc label="Help System Example"></tt>
<br><tt>&nbsp;&lt;topic label="Introduction" href="intro.html"/></tt>
<br><tt>&nbsp;&lt;topic label="Tasks"></tt>
<br><tt>&nbsp; &lt;topic label="Creating a Project" href="tasks/task1.html"></tt>
<br><tt>&nbsp;&nbsp; &lt;topic label="Creating a Web Project" href="tasks/task11.html"/></tt>
<br><tt>&nbsp;&nbsp; &lt;topic label="Creating a Java Project" href="tasks/task12.html"/></tt>
<br><tt>&nbsp; &lt;/topic></tt>
<br><tt>&nbsp; &lt;link toc="task.xml" /></tt>
<br><tt>&nbsp; &lt;topic label="Testing a Project" href="tasks/taskn.html"/></tt>
<br><tt>&nbsp;&lt;/topic></tt>
<br><tt>&nbsp;&lt;topic label="Samples"></tt>
<br><tt>&nbsp; &lt;topic label="Creating Java Project" href="samples/sample1.html"></tt>
<br><tt>&nbsp;&nbsp; &lt;topic label="Launch a Wizard" href="samples/sample11.html"/></tt>
<br><tt>&nbsp;&nbsp; &lt;topic label="Set Options" href="samples/sample12.html"/></tt>
<br><tt>&nbsp;&nbsp; &lt;topic label="Finish Creating Project" href="samples/sample13.html"/></tt>
<br><tt>&nbsp; &lt;/topic></tt>
<br><tt>&nbsp; &lt;anchor id="samples" /></tt>
<br><tt>&nbsp;&lt;/topic></tt>
<br><tt>&lt;/toc></tt></blockquote>
<p><br>(in file <tt>tasks.xml</tt>)
<blockquote><tt>&lt;toc label="Building a Project"></tt>
<br><tt>&nbsp;&lt;topic label="Building a Project" href="build/building.html"></tt>
<br><tt>&nbsp; &lt;topic label="Building a Web Project" href="build/web.html"/></tt>
<br><tt>&nbsp; &lt;topic label="Building a Java Project" href="build/java.html"/></tt>
<br><tt>&nbsp;&lt;/topic></tt>
<br><tt>&lt;/toc></tt></blockquote>
<p><br>(in file <tt>samples.xml</tt>)
<blockquote><tt>&lt;toc link_to="maindocs.xml#samples" label="Using The
Compile Tool"></tt>
<br><tt>&nbsp;&lt;topic label="The Compile Tool Sample" href="compilesample/example.html"></tt>
<br><tt>&nbsp; &lt;topic label="Step 1" href="compilesample/step1.html"/></tt>
<br><tt>&nbsp; &lt;topic label="Step 2" href="compilesample/step2.html"/></tt>
<br><tt>&nbsp; &lt;topic label="Step 3" href="compilesample/step3.html"/></tt>
<br><tt>&nbsp; &lt;topic label="Step 4" href="compilesample/step4.html"/></tt>
<br><tt>&nbsp;&lt;/topic></tt>
<br><tt>&lt;/toc></tt></blockquote>
<p>Assuming more documents exists with the path starting with "samples",
they will not be displayed in the navigation tree, but be accessible using
search.&nbsp; It is due to the presence of "extradir" attribute in the
element <tt>&lt;toc file="sample.xml" extradir="samples" /> </tt>inside<tt>
plugin.xml </tt>file. For example searching for "Creating Java Project"
could return a document "Other Ways of Creating Java Project", which path
is <tt>samples/sample2.html.</tt>
<p>
<b><em>Internationalization</em></b>
The TOC XML files can be translated and the resulting copy (with translated
labels) should be placed in nl/&lt;language>/&lt;country> or nl/&lt;language>
directory.&nbsp; The &lt;language> and &lt;country> stand for two letter
language and country codes as used in locale codes.&nbsp; For example,
Traditional Chinese translations should be placed in the nl/zh/TW directory.&nbsp;
The nl/&lt;language>/&lt;country> directory has a higher priority than
nl/&lt;language>.&nbsp; Only if no file is found in the nl/&lt;language>/&lt;country>,
the file residing in nl/&lt;language> will be used.&nbsp; The the root
directory of a plugin will be searched last.
<p>The documentation contained in doc.zip can be localized by creating
a doc.zip file with translated version of documents, and placing doc.zip
in
<br>nl/&lt;language>/&lt;country> or nl/&lt;language> directory. The help
system will look for the files under this directories before defaulting
to plugin directory.
<br>&nbsp;
</p>
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="apiInfo"/>
</appInfo>
<documentation>
An implementation of <samp>org.eclipse.help.AbstractTocProvider</samp> must be supplied if a <samp>tocProvider</samp> is used.
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="implementation"/>
</appInfo>
<documentation>
The default implementation of the help system UI supplied with the Eclipse platform fully supports this extension point.
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
Copyright (c) 2000, 2006 IBM Corporation and others.<br>
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 <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/
SPDX-License-Identifier: EPL-2.0
</documentation>
</annotation>
</schema>
|