File: hhc.xsl

package info (click to toggle)
openclonk 8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 169,520 kB
  • sloc: cpp: 180,479; ansic: 108,988; xml: 31,371; python: 1,223; php: 767; makefile: 145; sh: 101; javascript: 34
file content (55 lines) | stat: -rw-r--r-- 1,515 bytes parent folder | download | duplicates (7)
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
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="utf-8"?>

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

<xsl:output method="html" encoding="cp1252" doctype-public="-//IETF//DTD HTML//EN" />

<!-- Take care: Apparently microsofts html help compiler doesn't parse the html properly,
and needs at least some of the whitespace added with xsl:text below, and perhaps that there not be any in other places. -->

<xsl:template match="toc">
<HTML>
	<HEAD>
	</HEAD>
	<BODY>
		<OBJECT type="text/site properties">
			<param name="Window Styles" value="0x800025" />
		</OBJECT>
		<xsl:apply-templates />
	</BODY>
</HTML>
</xsl:template>

<xsl:template match="ul"><xsl:text>
</xsl:text>
<UL>
	<xsl:apply-templates />
</UL>
</xsl:template>

<xsl:template match="li[@class='index']">
</xsl:template>

<xsl:template match="li">
<LI><xsl:text> </xsl:text><OBJECT type="text/sitemap"><xsl:text>
</xsl:text>
	<param name="Name">
		<xsl:attribute name="value"><xsl:for-each select="text()|emlink/text()"><xsl:value-of select="normalize-space(string(.))" /></xsl:for-each></xsl:attribute>
	</param><xsl:text>
</xsl:text>
	<xsl:if test="emlink/@href"><param name="Local">
		<xsl:attribute name="value">sdk\<xsl:value-of select="translate(string(emlink/@href), '/', '\\')" /></xsl:attribute>
	</param><xsl:text>
</xsl:text></xsl:if>
</OBJECT>
<xsl:apply-templates />
</LI>
</xsl:template>

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

<xsl:template match="text()" />

</xsl:stylesheet>