Cover | Table of Contents | Colophon
http://www.java.sun.com/products/javahelp.
Also, I provide a link to Sun's download page under
"Examples" on the book's web page, http://www.oreilly.com/catalog/creatingjavahelp.http://examples.oreilly.com/creatingjavahelp). There are HelpSets and small Java
applications, all of which are designed to help you learn JavaHelp.
Each set of sample files is compressed. To use them, decompress the
files and read the enclosed
http://www.java.sun.com/products/javahelp. The JavaHelp site offers current news such as upcoming
JavaHelp releases, JavaHelp events, and involvement with
third-party vendors. You can also join the
JavaHelp mailing list from this site.http://developer.java.sun.com/developer. The JDC offers
access to technical information such as the JavaHelp specification.http://java.sun.com/products/javahelp.http://examples.oreilly.com/creatingjavahelp.
<mapID> and
<tocitem>, instead of HTML's
standardized
document-formatting tags, such as
<head> and <p>.<element-name attr-name="attr-value" attr-name="attr-value"/>
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE helpset
PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN"
"http://java.sun.com/products/javahelp/helpset_1_0.dtd">
<helpset version="1.0">
<title>My JavaHelp System</title>
<maps>
<mapref location="Map.jhm"/>
<homeID>overview</homeID>
</maps>
<view>
<name>TOC</name>
<label>TOC</label>
<type>javax.help.TOCView</type>
<data>TOC.xml</data>
</view>
<view>
<name>Index</name>
<label>Index</label>
<type>javax.help.IndexView</type>
<data>Index.xml</data>
</view>
</helpset>
http://examples.oreilly.com/creatingjavahelp.<html> <head> <title>Overview</title> </head> <body> <h1>Overview</h1> <p>Welcome to my JavaHelp system. In this help system I discuss my interests in the following topics: <ul> <li>Fitness</li> <li>Computers</li> <li>Movies</li> <li>Music</li> </ul> </body> </html>
<html> <head> <title>Fitness</title> </head> <body> <h1>Fitness</h1> <p>I enjoy the following fitness activities: <ul> <li>Running</li> <li>Biking</li> <li>Hiking</li> <li>Swimming</li> </ul> </body> </html>
<html> <head> <title>Computers</title> </head> <body> <h1>Computers</h1> <p>I use computers every day for both work and pleasure.</p> </body> </html>
interests and then press the Enter or Return key.
Notice that JavaHelp highlights the entry in the index. Click any
index entry to display its corresponding topic in the content pane.<title> tags, for
use by JavaHelp's word-search index.<tocitem target="intro" text="Introduction to Aviation">
<tocitem> tag is not a standard HTML
tag. A standard web browser simply skips over this tag, but
JavaHelp's HelpSet Viewer does know how to interpret it.<tag name1="value1" name2="value2">
text and other elements go here
</tag>
<tocitem ...>), and a corresponding end-tag
(for example, </tocitem>).<tag name1="value1" name2="value2"/>
<tocitem target="intro" text="Introduction to Aviation">
<tocitem> tag is not a standard HTML
tag. A standard web browser simply skips over this tag, but
JavaHelp's HelpSet Viewer does know how to interpret it.<tag name1="value1" name2="value2">
text and other elements go here
</tag>
<tocitem ...>), and a corresponding end-tag
(for example, </tocitem>).<tag name1="value1" name2="value2"/>
<tag name1="value1" name2="value2"></tag>
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE helpset
PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN"
"http://java.sun.com/products/javahelp/helpset_1_0.dtd">
<helpset version="1.0">
<title>Aviation Information</title>
<maps>
<homeID>intro</homeID>
<mapref location="Map.jhm"/>
</maps>
<view>
<name>TOC</name>
<label>Aviation TOC</label>
<type>javax.help.TOCView</type>
<data>TOC.xml</data>
</view>
<view>
<name>Index</name>
<label>Aviation Index</label>
<type>javax.help.IndexView</type>
<data>Index.xml</data>
</view>
<view>
<name>Search</name>
<label>Aviation Word Search</label>
<type>javax.help.SearchView</type>
<data engine="com.sun.java.help.search.DefaultSearchEngine">
JavaHelpSearch
</data>
</view>
</helpset>
<?xml ...) and the
document type definition, or DTD
(<!DOCTYPE ...), identify this file as an XML
document with a particular structure. This can be useful if an
XML-aware program other than the HelpSet Viewer needs to access the
data in this file.<helpset> start-tag at the top of the file
and a </helpset> end-tag at the bottom. You
can include an optional version