File: mono-ecma-css.xsl

package info (click to toggle)
mono 4.6.2.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 778,148 kB
  • ctags: 914,052
  • sloc: cs: 5,779,509; xml: 2,773,713; ansic: 432,645; sh: 14,749; makefile: 12,361; perl: 2,488; python: 1,434; cpp: 849; asm: 531; sql: 95; sed: 16; php: 1
file content (47 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download | duplicates (10)
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
<?xml version="1.0"?>

<!--
	mono-ecma-css.xsl: ECMA-style docs to HTML+CSS stylesheet trasformation
	based on mono-ecma.xsl by Joshua Tauberer

	Author: Joshua Tauberer (tauberer@for.net)
	Author: Mario Sopena Novales (mario.sopena@gmail.com)

	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:include href="mdoc-sections-css.xsl" />
	<xsl:include href="mono-ecma-impl.xsl" />
	
	<xsl:output omit-xml-declaration="yes" />

	<xsl:template name="CreateExpandedToggle">
		<img src="xtree/images/clean/Lminus.gif" border="0" align="top"/>
	</xsl:template>

	<xsl:template name="CreateCodeBlock">
		<xsl:param name="language" />
		<xsl:param name="content" />

		<div class="CodeExample">
			<p><b><xsl:value-of select="$language"/> Example</b></p>
			<div>
			<pre>
				<!--
				<xsl:value-of select="monodoc:Colorize($content, string($language))" 
					disable-output-escaping="yes" />
				  -->
				<xsl:value-of select="$content" />
			</pre>
			</div>
		</div>
	</xsl:template>

</xsl:stylesheet>