anchor
element. XHTML snippets can then be dynamically inserted into these documents at runtime.
<!ELEMENT extension (contentExtension+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT contentExtension EMPTY>
<!ATTLIST contentExtension
file CDATA #REQUIRED>
Defines content extension to one or more Help system pages. The location of the content extension file is specified by the file
attribute.
<contentExtension>
<topicExtension content=
"plugin/relative/path/topicExtensionFile.xhml"
path=
"plugin_id/path_to_xhtml_file/anchor_id"
/>
<topicReplace content=
"topicReplaceFile.xhml"
path=
"plugin_id/path_to_xhtml_file/element_id"
/>
</contentExtension>
topicExtension
is the markup used to insert content at the target anchor location. topicReplace
is the markup used to replace the content of the target element by the specified content. In other words, content can be contributed that either adds to the target location or replaces the content of the target location.(in file plugin.xml)
<extension point=
"org.eclipse.help.contentExtension"
>
<contentExtension file=
"contentExtensionFile.xml"
/>
</extension>
(in file contentExtensionFile.xml)
<contentExtension>
<topicExtension content=
"xhtml/topicA.xhtml"
path=
"org.xxx.yyy.somePluginId/xhtml/someHelpPage.xhtml/topicAnchor"
/>
</contentExtension>
The above contribution inserts the content of the XHTML file, topicA.xhtml, into the target Help system page specified by the path attribute. In this case, the content extension will be inserted in the location of an anchor called topicAnchor in page someHelpPage.xhtml in plugin org.xxx.yyy.somePluginId.
The above contribution inserts the content of the XHTML file, topicA.xhtml, into the target Help system page specified by the path attribute. In this case, the content extension will be inserted in the location of an anchor called topicAnchor in page someHelpPage.xhtml in plugin org.xxx.yyy.somePluginId.
Copyright (c) 2000, 2006 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