![]() |
Kjell Type CAI Tutorial |
![]() |
Bradley Kjell's "home brew" tools for making a programmed learning HTML Tutorial may be downloaded from Kjell's web site. The following description is lifted directly from his "readme.htm" file.
CSSMaker Documentation
(January 2003 version)
What is CSSMaker?
CSSMaker creates a linked sequence of Web pages that together form one chapter of a Web-based instructional sequence. The input for CSSMaker is a text file (called a source file) that may be created with any text editor. The source file contains ordinary HTML markup tags and other tags that are specific to CSSMaker. These specific tags demarcate sections of the source that are to form separate Web pages and sections within each Web page.
The source file follows a loose XML grammar. But since an XML parser is not used, you can be sloppy with the grammar. However the idea similar to a modern XML-based application: the data consists of XML tags and content, the program parses the data and extracts the data, then the program creates its output. The output for this program is a sequence of HTML files.
The advantage of this program is that you can create and edit the source file, an ordinary text file that contains all of your content. This program then breaks it up into the Web pages the user will see. The boilerplate HTML is added to these pages and they are linked together automatically. Rearranging the material, changing the HTML, and other tasks is easily done with the source file. A new set of pages is easily generated after each change.
What is New in this Version?
This (January 2003) version of CSSMaker has improved file navigation over the previous version. Basically, the previous version was a quick hack done so the Web pages used Cascading Style Sheets. This version is almost classroom quality (but still far from industrial quality).
What is in this zip Archive?
This archive consists of the files:
- readme.html --- this file
- contents.gif --- an icon useful for Web pages
- Chapter.java --- part of the source code
- CSSMaker.java --- part of the source code
- Lesson.java --- part of the source code
- mystyle.css --- example style sheet
- sampleSource.xml --- sample input data
How is the program run?
The sample input data is for chapter one of the on-line Java tutorial at http://chortle.ccsu.edu . Compile the Java source code, then run the program by typing
java CSSMakerat a DOS prompt. EntersampleSource.xmlin the text field for source. Enter something likepage_1.htmlin the window for example output file name. The program will change your example name topage_and then, when you click the Make Pages button will createpage_1,page_2,page_3and so on.The Confirm Files button merely writes the names of the input file and the output file(s). It is useful to click it to check what you are about to do, but this is not required.
What is the grammar of the Source File?
The best way to see how source files look like is to look at sampleSource.xml
and the pages it creates. The unfamiliar tags are the ones specific for
CSSMaker. All application tags must be in capitals. Most application
tags must start in column one of the source file.
<CHAPTER><COPYRIGHTDATE>2002</COPYRIGHTDATE><COPYRIGHTHOLDER>Your Name</COPYRIGHTHOLDER><AUTHORNAME>Your Name</AUTHORNAME><STYLESHEET>mystyle.css</STYLESHEET><NEXTICON>nextButton.gif</NEXTICON><CAI>Title<ANSWER></ANSWER><LESSON></LESSON><QUESTION></QUESTION></CAI></CHAPTER>There may be many Web pages. There may be many sections marked by <CAI> to </CAI>. But each section may have only one answer, one lesson, and one question, in that order.
In addition to ordinary text content and HTML markup, the lesson section can contain the tag
<INDEX>index term</INDEX>
This enters the "index term" and the current Web page into a table. Later on, the "index term" may be used to link to the Web page it was defined on:
<GOTO>index term</GOTO>
|
|
![]() csgate@donaldson.org ICQ# 62833374 |
|