1 <?xml version='1.0' encoding='utf-8'?>
3 <!-- XHTML-to-SFFMS converter by Fletcher Penney
4 specifically designed for use with MultiMarkdown created XHTML
6 Uses the SFFMS class for output:
8 http://www.mcdemarco.net/sffms/
10 MultiMarkdown Version 2.0.b5
12 $Id: sffms-no-chapter-titles.xslt 479 2008-01-12 23:04:13Z fletcher $
16 # Copyright (C) 2005-2008 Fletcher T. Penney <fletcher@fletcherpenney.net>
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.
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.
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
37 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
38 xmlns:html="http://www.w3.org/1999/xhtml"
41 <xsl:import href="sffms.xslt"/>
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"/>
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"/>