Accept attributes in inline image syntax
[multimarkdown] / XSLT / sffms-no-chapter-titles.xslt
1 <?xml version='1.0' encoding='utf-8'?>
2
3 <!-- XHTML-to-SFFMS converter by Fletcher Penney
4         specifically designed for use with MultiMarkdown created XHTML
5
6         Uses the SFFMS class for output:
7         
8                 http://www.mcdemarco.net/sffms/
9         
10         MultiMarkdown Version 2.0.b5
11         
12         $Id: sffms-no-chapter-titles.xslt 479 2008-01-12 23:04:13Z fletcher $
13 -->
14
15 <!-- 
16 # Copyright (C) 2005-2008  Fletcher T. Penney <fletcher@fletcherpenney.net>
17 #
18 # This program is free software; you can redistribute it and/or modify
19 # it under the terms of the GNU General Public License as published by
20 # the Free Software Foundation; either version 2 of the License, or
21 # (at your option) any later version.
22 #
23 # This program is distributed in the hope that it will be useful,
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26 # GNU General Public License for more details.
27 #
28 # You should have received a copy of the GNU General Public License
29 # along with this program; if not, write to the
30 #    Free Software Foundation, Inc.
31 #    59 Temple Place, Suite 330
32 #    Boston, MA 02111-1307 USA
33 -->
34
35         
36 <xsl:stylesheet
37         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
38         xmlns:html="http://www.w3.org/1999/xhtml"
39         version="1.0">
40
41         <xsl:import href="sffms.xslt"/>
42         
43         <xsl:template match="/">
44                 <xsl:apply-templates select="html:html/html:head"/>
45                 <xsl:apply-templates select="html:html/html:body"/>
46                 <xsl:call-template name="latex-footer"/>
47         </xsl:template>
48
49         <xsl:template match="html:h2">
50                 <xsl:text>\chapter*{</xsl:text>
51                 <xsl:apply-templates select="node()"/>
52                 <xsl:text>}</xsl:text>
53                 <xsl:value-of select="$newline"/>
54                 <xsl:text>\label{</xsl:text>
55                 <xsl:value-of select="@id"/>
56                 <xsl:text>}</xsl:text>
57                 <xsl:value-of select="$newline"/>
58                 <xsl:value-of select="$newline"/>
59         </xsl:template>
60
61 </xsl:stylesheet>