Accept attributes in inline image syntax
[multimarkdown] / XSLT / custom-envelope.xslt
1 <?xml version='1.0' encoding='utf-8'?>
2
3 <!-- Custom Envelope by Fletcher Penney
4
5         Demonstration of how to customize the default envelope template
6                 in MultiMarkdown with default return address information.
7
8         MultiMarkdown Version 2.0.b5
9
10         $Id: custom-envelope.xslt 487 2008-01-13 21:23:03Z fletcher $
11 -->
12
13 <!-- 
14 # Copyright (C) 2008  Fletcher T. Penney <fletcher@fletcherpenney.net>
15 #
16 # This program is free software; you can redistribute it and/or modify
17 # it under the terms of the GNU General Public License as published by
18 # the Free Software Foundation; either version 2 of the License, or
19 # (at your option) any later version.
20 #
21 # This program is distributed in the hope that it will be useful,
22 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24 # GNU General Public License for more details.
25 #
26 # You should have received a copy of the GNU General Public License
27 # along with this program; if not, write to the
28 #    Free Software Foundation, Inc.
29 #    59 Temple Place, Suite 330
30 #    Boston, MA 02111-1307 USA
31 -->
32
33         
34 <xsl:stylesheet
35         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
36         xmlns:html="http://www.w3.org/1999/xhtml"
37         version="1.0">
38
39         <xsl:import href="envelope.xslt"/>
40         
41         <xsl:template match="/">
42                 <xsl:apply-templates select="html:html/html:head"/>
43                 <xsl:call-template name="latex-footer"/>
44         </xsl:template>
45
46         <xsl:template name="return-address-defaults">
47                 <xsl:text>% Default info for return address
48 % These should include '\\' where appropriate for line endings
49
50 \def\defaultemail{\href{mailto:owner@fletcherpenney.net}{owner@fletcherpenney.net} \\}
51 \def\defaultposition{}
52 \def\defaultdepartment{\coverlogo \normalfont \\}
53 \def\defaultaddress{123 Fake St \\ Charleston, SC 29401 \\}
54 \def\defaultweb{}
55
56 % Define Logo or something for upper left corner
57 \def\coverlogo{\font\logo="Didot:mapping=tex-text" \logo
58 fletcherpenney.\color{accent}net\color{black}
59 }
60
61 % Use my stylesheet
62 \usepackage{fletcherpenney}
63
64 </xsl:text>
65         </xsl:template>
66
67
68         
69 </xsl:stylesheet>