Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Contributing XHTML help documents

Why use XHTML?

The help system provides the ability to produce dynamic helpcontent by annotating your XHTML markup with special tags to filter, include, and extend documents. These features are not available when using HTML.

How to contribute XHTML

XHTML help documents are contributed in much the same way as HTML, except there is an important difference that must be there in order to support dynamic content.

  • If using dyamic content, you must bind the XHTML dynamic content producer to your doc plugin.

    If you want to produce dynamic content using the XML annotations, you need to tell the help system that it should process your documents. This is done by binding the XHTML dynamic content producer to your plugin.

       <extension
             point="org.eclipse.help.contentProducer">
          <binding producerId="org.eclipse.help.dynamic"/>
       </extension>

    Since Eclipse 3.4 it is no longer necessary to bind the "org.eclipse.help.base.xhtml" search participant to your doc plugin.

XHTML include format

If you wish to use includes in your XHTML, the format of the path attribute is as follow: (explained below)

   <plugin_id>/<path_to_xhtml_file>/<filename_xhtml>/<element_id>

Where the fields are:

  • plugin_id: The id of the plug-in containing the content to include (e.g. org.eclipse.help)
  • path_to_xhtml_file: The plug-in relative path to the file (e.g. /my_folder/my_sub_folder/)
  • filename_xhtml: The name of the XHTML file, including extension (e.g. my_file.xhtml)
  • element_id: The unique identifier for the element you wish to include. This is set by adding an id attribute to that element (e.g. my.element.id)

For example, if you wish to include the paragraph (<p> element) with the id my_copyright from the file /copyrights/copyright.xhtml in plugin my.product.plugin, you would specify the following:

   my.product.plugin/copyrights/copyright.xhtml/my_copyright

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire