92
by Torsten Spindler
Fixes and new stylesheet for instructor notes and answers, updated makefile |
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<xsl:stylesheet version="1.0" |
|
3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
4 |
||
5 |
<xsl:output method="xml" indent="yes" encoding="utf-8" |
|
6 |
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
|
7 |
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" /> |
|
8 |
||
9 |
<xsl:template match="node()|@*"> |
|
10 |
<xsl:copy> |
|
11 |
<xsl:apply-templates select="@*|node()" /> |
|
12 |
</xsl:copy>
|
|
13 |
</xsl:template>
|
|
14 |
||
15 |
<!-- Remove answers -->
|
|
16 |
||
17 |
<xsl:template match="answer" /> |
|
18 |
||
156.1.6
by Torsten Spindler
Fixed stylesheets for qandaset |
19 |
<!-- Remove instructor notes -->
|
20 |
||
21 |
<xsl:template match="note"> |
|
22 |
<xsl:if test="@userlevel='instructor'"> |
|
23 |
</xsl:if>
|
|
24 |
<xsl:if test="not(@userlevel='instructor')"> |
|
25 |
<xsl:apply-templates/> |
|
26 |
</xsl:if>
|
|
27 |
</xsl:template>
|
|
28 |
||
29 |
<xsl:template match="sect1"> |
|
30 |
<xsl:if test="@userlevel='instructor'"> |
|
31 |
</xsl:if>
|
|
32 |
<xsl:if test="not(@userlevel='instructor')"> |
|
33 |
<sect1>
|
|
34 |
<xsl:apply-templates /> |
|
35 |
</sect1>
|
|
36 |
</xsl:if>
|
|
37 |
</xsl:template>
|
|
38 |
||
156.1.5
by Torsten Spindler
Update xsl and remove userprofile |
39 |
<xsl:template match="subtitle"> |
40 |
<chapter>
|
|
41 |
<xsl:apply-templates select="@*|node()" /> |
|
42 |
</chapter>
|
|
43 |
</xsl:template>
|
|
44 |
||
156.1.6
by Torsten Spindler
Fixed stylesheets for qandaset |
45 |
<!-- Question and Answers -->
|
46 |
||
47 |
<xsl:template match="qandaset"> |
|
48 |
<xsl:apply-templates /> |
|
49 |
</xsl:template>
|
|
50 |
||
51 |
<xsl:template match="qandaentry"> |
|
52 |
<xsl:apply-templates /> |
|
53 |
</xsl:template>
|
|
54 |
||
55 |
<xsl:template match="question"> |
|
156.1.7
by Torsten Spindler
Nicer question and answer formatting |
56 |
<formalpara><title>Question:</title> |
156.1.6
by Torsten Spindler
Fixed stylesheets for qandaset |
57 |
<xsl:apply-templates /> |
156.1.7
by Torsten Spindler
Nicer question and answer formatting |
58 |
</formalpara>
|
156.1.6
by Torsten Spindler
Fixed stylesheets for qandaset |
59 |
</xsl:template>
|
60 |
||
156.1.7
by Torsten Spindler
Nicer question and answer formatting |
61 |
<xsl:template match="answer"> |
62 |
<formalpara><title>Answer:</title></formalpara> |
|
63 |
</xsl:template>
|
|
86.2.5
by Torsten Spindler
Separating answers for student guide |
64 |
|
92
by Torsten Spindler
Fixes and new stylesheet for instructor notes and answers, updated makefile |
65 |
</xsl:stylesheet>
|
66 |