A Teachpoint lesson is described by an XML lesson document. The Teachpoint server uses the lesson document to produce the HTML lesson page that is displayed to the student.
The lesson document is usually not written directly.
Instead, it is produced by processing a lesson core document
with a lesson stylesheet
that describes the page layout and navigation interface.
Teachpoint supplies a default lesson stylesheet.
A lesson core document describes a lesson. Here's an example:
<?xml version="1.0"?> <html xmlns:tp="http://teachpoint.com"> <head/><body> In a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides. </body> </html>
If this is processed with the default lesson stylesheet, the resulting lesson page looks like this.
Lesson core documents can contain the following tag:
<tp:if property="X" value="Y"> ... </tp:if>The enclosed content is output only if the XSLT parameter X has the value Y. X is typically "depth_of_interest" or "reading_grade_level". This lets you generate variants of a lesson from a single core document.
Note: this tags is implemented by the lesson stylesheet. You can modify the default stylesheet to add your own tags.
Lesson documents can contain the following tags, which are normally added to lesson core documents by the lesson stylesheet.
<tp:anchor action="X"> ... </tp:anchor>This generates a navigation hyperlink. X is one of:
<tp:show what="X"> ... </tp:anchor>
This tag is replaced with text according to X:
<tp:if mode="X"> ... </tp:anchor>
Conditionally show the enclosed content if the student is currently in: