This repository was archived by the owner on Jan 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmap.html
More file actions
137 lines (130 loc) · 5.34 KB
/
map.html
File metadata and controls
137 lines (130 loc) · 5.34 KB
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--
* Copyright © 2003 Sun Microsystems, Inc
* All rights reserved.
* Notice of copyright on this source code
* product does not indicate publication.
*
* RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by
* the U.S. Government is subject to restrictions as set forth
* in subparagraph (c)(1)(ii) of the Rights in Technical Data
* and Computer Software Clause at DFARS 252.227-7013 (Oct. 1988)
* and FAR 52.227-19 (c) (June 1987).
* Sun Microsystems, Inc., 4150 Network Circle,
* Santa Clara, California 95054, U.S.A.
*
-->
<html>
<head>
<title>The Map File</title>
<link rel="stylesheet" type="text/css" href="../jhug.css" title="Style">
</head>
<body bgcolor="#ffffff">
<h2>The Map File</h2>
<p> When the JavaHelp system is activated by your application, the first thing
it does is read the application's <a
href="helpset.html">helpset file</a>. The next thing it does is read the map file
listed in the helpset file. The map file is used to associate topic IDs with
URLs (paths to HTML topic files) and to define the window that can display help
topics. By convention, map file names use the <code>.jhm</code> suffix.
<p>
The
format of the map file is based on the World Wide Web
Consortium Extended Markup Language (XML).
<p> The following code listing is an example of a short map file: </p>
<pre><?xml version='1.0' encoding='ISO-8859-1' ?><br><!DOCTYPE map<br> PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp Map Version 2.0//EN"<br> "http://java.sun.com/products/javahelp/map_2_0.dtd"><br><map version="2.0">
<mapID target="toplevelfolder" url="images/toplevel.gif" >
<mapID target="hol_intro" url="hol/hol.html" />
<mapID target="halloween" url="hol/hall.html"/>
<mapID target="jackolantern" url="hol/jacko.html" />
<mapID target="jacko_carving" url="hol/jacko.html#carving" />
<mapID target="mluther" url="hol/luther.html" />
<mapID target="reformation" url="hol/inforefo.html" />
<mapID target="fawkes" url="hol/guy.html" />
<mapID target="thanksgiving" url="hol/thanks.html" />
<mapID target="thanksgiving_turkey" url="hol/thanks.html#turkey" />
<mapID target="1thanksproc" url="hol/thanks2.html" />
<mapID target="gwthanksproc" url="hol/thanks3.html" />
<mapID target="althanksproc" url="hol/thanks4.html" />
<mapID target="valentine" url="hol/val.html" />
<mapID target="onlove" url="hol/love.html" />
</mapID>
</map></pre>
<p>Note that images referred to as IDs (for example, in the TOC) can also be associated
with an ID. In this example, <code>toplevelfolder</code> is associated with the
GIF image <code>toplevel.gif</code>. </p>
<h4>The Map Tags</h4>
<p>The following table describes the tags that can be used in the map file: </p>
<p> </p>
<table width=100% border=0 cellpadding=5>
<tr valign="top">
<td width=70><code><map></code>
</td>
<td> Defines the map. It contains <code><mapID></code> tags and the following
optional attributes. <br>
<table width=100% border=0 cellpadding=5>
<tr valign="top">
<td width=60> <code>xml:lang="lang"</code></td>
<td> Language for the map file. Use the standard locale-country-variant
format.<br>
<br>
Some examples:<br>
<br>
<code>xml:lang="de"</code><br>
<code>xml:lang="en"<br>
xml:lang="en-US" </code></td>
</tr>
<tr valign="top">
<td> <code>version="1.0"|"2.0"</code></td>
<td> Version of JavaHelp software.</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td><code><mapID></code>
</td>
<td>
Defines a map entry. Uses the
following attributes:
<!-- Begin Nested table -->
<table width=100% border=0 cellpadding=5>
<tr valign="top">
<td width=60> <code>xml:lang="lang"</code></td>
<td> Language for the map ID. Use the standard locale-country-variant
format.<br>
<br>
Some examples:<br>
<br>
<code>xml:lang="de"</code><br>
<code>xml:lang="en"<br>
xml:lang="en-US" </code></td>
</tr>
<tr valign="top">
<td width=60> <code>target</code> </td>
<td> Specifies the ID to associate with the URL specified in the <code>url</code>
attribute. </td>
</tr>
<tr valign="top">
<td> <code>url</code> </td>
<td> Specifies the URL to associate with the ID specified in the <code>target</code>
attribute. </td>
</tr>
</table>
<!-- End Nested table -->
</td>
</tr>
</table>
<p>
<img src="../../images/hg_see.gif" width="18" height="13"><b>See also:</b>
<dl>
<dd><a href="helpset.html">The Helpset File</a>
<dd><a href="jar.html">JAR Files</a>
<dd><a href="toc.html">Table of Contents File</a>
<dd><a href="index.html">Index File</a>
<dd><a href="search.html">Creating the Full-Text Search Database</a>
<!-- <dd><A HREF="../jhugTOC.html">Table of Contents</A> -->
</dl>
<br>
</body>
</html>