From: David Cramer Date: Sat, 11 Jan 2003 22:19:29 +0000 (+0000) Subject: Initial checkin of customization of htmlhelp xsls to generate cross-platform help... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83446a3a7547711d8769add57e8f8f04104f3387;p=docbook-dsssl Initial checkin of customization of htmlhelp xsls to generate cross-platform help using applets --- diff --git a/contrib/xsl/applethelp/README b/contrib/xsl/applethelp/README new file mode 100644 index 000000000..23c1d2c88 --- /dev/null +++ b/contrib/xsl/applethelp/README @@ -0,0 +1,73 @@ +README + +What is this and how do I use it? + +This customization of Jirka Kosek's customization of Norm +Walsh's DocBook xsls generates a frameset with ingredients +necessary to view an uncompiled help project in most +browsers that support Java applets, much like the "WebHelp" +format available from RoboHELP. You simply have to add a few +files found in the installation directory of the HTML Help +Workshop to the base directory of the frameset. The applet +creates a toc and index tab (though no search or favorites +tab) that works well in most browsers that support applets. +The stuff added for frameset doesn't affect the chm at all. + +After generating your html files, copy the contents of the +'java' folder from your HTML Help Workshop installation to +the directory containing the frameset files. Note that you +must copy the *contents* of C:\Program Files\HTML Help +Workshop\java (not the folder-so HHCtrl.class etc. must be +in the same directory as index.html, contents.pane.html, and +index.pane.html). + +So when you're done, your directory will look like this +(where build/index.html runs the frameset): + +build/ cntimage.gif + contents.pane.html + DialogLayout.class + Element.class + ElementList.class + files/*.html + HHCtrl.cab + HHCtrl.class + htmlhelp.hhp + images/ cntidx.gif + cntimage.gif + cnttab.gif + indexcnt.gif + indextab.gif + *.gif + index.hhk + index.html + index.pane.html + IndexPanel.class + RelatedDialog.class + SitemapParser.class + toc.hhc + TreeCanvas.class + TreeView.class + +Note that you can still compile the htmlhelp.hhp file. The +applets .class files are not needed or included in the chm. + +This stylesheet was tested with 1.55.0 of the docbook xsls, +but probably works with more recent versions. + +Known Limitation: The indexterms in the index tab are +currently not sorted. This can be fixed by tweaking the +xsls. Also, multiple instances of the same indexterm appear +in the index pane (in a chm, they are combined and a choice +of terms is presented when it is double clicked). + +Resources: +http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconwhtsja.asp +http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp +http://www.mvps.org/htmlhelpcenter/hhjapplt.htm + +This is a contrib file and carries no guarantee. + +David Cramer +dcramer@broadjump.com +david@thingbag.net diff --git a/contrib/xsl/applethelp/applethelp.xsl b/contrib/xsl/applethelp/applethelp.xsl new file mode 100755 index 000000000..1746b8cc1 --- /dev/null +++ b/contrib/xsl/applethelp/applethelp.xsl @@ -0,0 +1,253 @@ + + + + + + + + + + + + images/ + + index.html + contents.pane.html + index.pane.html + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <body> + <p>This page uses frames, but your browser doesn't support them.</p> + </body> + + + + + + + + + Contents Pane + + + +
+ + + + + + + + +
+ + + + + + +
+ + +
+ + + + + Index Pane + + + +
+ + + + +
+ + + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + +
+ + + + <HTML> + <HEAD> + </HEAD> + <BODY> + + + <OBJECT type="text/site properties"> + <param name="FrameName" value="main"> + <param name="Window Styles" value="0x800025"> + + <param name="ImageType" value="Folder"> + + </OBJECT> + + <UL> + + + + + + + + + + + + + + </UL> + + + </BODY> + </HTML> + + + + + + + + + + + + + + + + + +
    ]]> + + + + + + + + + + + + ]]> + + + + + + + + + + + + ID ' + + ' not found in document. + + + + Formatting from + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/contrib/xsl/applethelp/images/cntidx.gif b/contrib/xsl/applethelp/images/cntidx.gif new file mode 100755 index 000000000..88750d9a3 Binary files /dev/null and b/contrib/xsl/applethelp/images/cntidx.gif differ diff --git a/contrib/xsl/applethelp/images/cnttab.gif b/contrib/xsl/applethelp/images/cnttab.gif new file mode 100755 index 000000000..61396e336 Binary files /dev/null and b/contrib/xsl/applethelp/images/cnttab.gif differ diff --git a/contrib/xsl/applethelp/images/indexcnt.gif b/contrib/xsl/applethelp/images/indexcnt.gif new file mode 100755 index 000000000..d04de9eff Binary files /dev/null and b/contrib/xsl/applethelp/images/indexcnt.gif differ diff --git a/contrib/xsl/applethelp/images/indextab.gif b/contrib/xsl/applethelp/images/indextab.gif new file mode 100755 index 000000000..322e4b48d Binary files /dev/null and b/contrib/xsl/applethelp/images/indextab.gif differ