comparison m-toolbox/html_help/highlight/mat2html.xsl @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 <xsl:stylesheet version="1.0"
2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns="http://www.w3.org/TR/xhtml1/strict">
4 <xsl:preserve-space elements="line" />
5 <xsl:output
6 method="html"
7 indent="yes"
8 encoding="iso-8859-1"/>
9
10 <xsl:template match="mfile">
11 <html>
12 <head>
13 <title>
14 <xsl:value-of select="@name"/>
15 </title>
16 <meta name="generator" content="highlight.m (c) 2003 Guillaume Flandin"/>
17 <style type="text/css">
18 .comment {color: #228B22;}
19 .string {color: #B20000;}
20 .keyword, .cont {color: #0000FF;}
21 .cont {text-decoration: underline;}
22 .code {color: #000000;}
23 </style>
24 </head>
25 <body>
26 <pre class="mcode">
27 <xsl:apply-templates/>
28 </pre>
29 </body>
30 </html>
31 </xsl:template>
32
33 <xsl:template match="line">
34 <xsl:value-of select="@nb"/>
35 <xsl:apply-templates/>
36 </xsl:template>
37
38 <xsl:template match="keyword">
39 <span class="keyword">
40 <xsl:apply-templates/>
41 </span>
42 </xsl:template>
43
44 <xsl:template match="cont">
45 <span class="cont">
46 <xsl:apply-templates/>
47 </span>
48 </xsl:template>
49
50 <xsl:template match="comment">
51 <span class="comment">
52 <xsl:apply-templates/>
53 </span>
54 </xsl:template>
55
56 <xsl:template match="string">
57 <span class="string">
58 <xsl:apply-templates/>
59 </span>
60 </xsl:template>
61
62 </xsl:stylesheet>
63
64 <!--
65 %**************************************************************************************
66 %* Stylesheet Author: Guillaume Flandin *
67 %* June 2003 *
68 %* PLEASE KEEP THIS NOTE WHEN USING, MODIFING OR AMELIORATING THIS SHEET *
69 %* Send your comments to Guillaume@artefact.tk *
70 %**************************************************************************************
71 -->