Fixed (setf document-element) in the presence of non-element children
[cxml-stp.git] / index.xsl
blob15d3f99c4ea1887f0f9ea70eb9a57f6d80968753
1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2 <xsl:output method="html"
3 indent="yes"
4 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
5 doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
7 <xsl:template match="@*|node()">
8 <xsl:copy>
9 <xsl:apply-templates select="@*|node()"/>
10 </xsl:copy>
11 </xsl:template>
13 <xsl:template match="/">
14 <html>
15 <head>
16 <title>
17 cxml-stp
18 </title>
19 <link rel="stylesheet" type="text/css" href="index.css"/>
20 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
21 </head>
22 <body style="width: 62em">
23 <xsl:call-template name="header"/>
24 <xsl:apply-templates/>
25 </body>
26 </html>
27 </xsl:template>
29 <xsl:template match="page">
30 <div id="homepage" class="main">
31 <xsl:apply-templates/>
32 </div>
33 </xsl:template>
35 <xsl:template match="blau">
36 <span style="color: black">
37 <xsl:apply-templates/>
38 </span>
39 </xsl:template>
41 <xsl:template match="raute">
42 <span style="font-size: 12pt">&#x2b17;</span>
43 </xsl:template>
45 <xsl:template name="header">
46 <div id="header">
47 <div style="margin-left: 30px">
48 <b>
49 <span>cxml&#x2013;</span>
50 <span style="color: #55a6e0">stp</span>
51 </b>
52 </div>
53 </div>
54 </xsl:template>
55 </xsl:stylesheet>