~gumara/ubuntu-desktop-course/ubuntu-desktop-course-th-gumara

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
<?xml version='1.0'?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:output method="xml" indent="yes" encoding="utf-8"
   doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
   doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />

 <!-- Add subtitle -->

    <xsl:template match="subtitle">
      <chapter>
        <xsl:apply-templates/>
      </chapter>
    </xsl:template>

    <xsl:template match="node()|@*">
        <xsl:copy>
           <xsl:apply-templates select="@*|node()" />
        </xsl:copy>
    </xsl:template>

 <!-- Question and Answers -->

    <xsl:template match="qandaset">
        <xsl:apply-templates />
    </xsl:template>

    <xsl:template match="qandaentry">
        <xsl:apply-templates />
    </xsl:template>

    <xsl:template match="question">
	<formalpara><title>Question:</title>
        <xsl:apply-templates />
	</formalpara>
    </xsl:template>

    <xsl:template match="answer">
	<formalpara><title>Answer:</title>
        <xsl:apply-templates/>
	</formalpara>
    </xsl:template>


</xsl:stylesheet>