File: mono-ecma.xsl

package info (click to toggle)
mono 6.12.0.199%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,296,836 kB
  • sloc: cs: 11,181,803; xml: 2,850,076; ansic: 699,709; cpp: 123,344; perl: 59,361; javascript: 30,841; asm: 21,853; makefile: 20,405; sh: 15,009; python: 4,839; pascal: 925; sql: 859; sed: 16; php: 1
file content (42 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download | duplicates (14)
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
<?xml version="1.0"?>

<!--
	mono-ecma.xsl: ECMA-style docs to HTML stylesheet trasformation

	Author: Joshua Tauberer (tauberer@for.net)

	TODO:
		split this into multiple files
-->

<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:monodoc="monodoc:///extensions"
	exclude-result-prefixes="monodoc"
	>
	<xsl:import href="mdoc-sections.xsl" />
	<xsl:import href="mono-ecma-impl.xsl" />
	
	<xsl:output omit-xml-declaration="yes" />

	<xsl:template name="CreateCodeBlock">
		<xsl:param name="language" />
		<xsl:param name="content" />
		<table class="CodeExampleTable" bgcolor="#f5f5dd" border="1" cellpadding="5" width="100%">
			<tr><td><b><xsl:value-of select="$language"/> Example</b></td></tr>
			<tr>
				<td>
					<!--
					<xsl:value-of select="monodoc:Colorize($content, string($language))" 
						disable-output-escaping="yes" />
						-->
					<pre>
						<xsl:value-of select="$content" />
					</pre>
				</td>
			</tr>
		</table>
	</xsl:template>

</xsl:stylesheet>