1 <xsl:stylesheet version="1.0"
2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <xsl:output indent="yes"/>
5 <!-- document skeleton -->
6 <xsl:template match="/">
8 <cmd name="documentclass">
9 <opt>a4paper,12pt</opt>
14 <cmd name="author" nl2="1">
16 select="//span[@class='author']"/>
19 <cmd name="title" nl2="1">
21 select="/html/head/title"/></parm>
23 <cmd name="maketitle" nl2="1" gr="0"/>
24 <!-- document body -->
25 <xsl:apply-templates select="/html/body"/>
30 <!-- document body -->
31 <xsl:template match="body">
32 <cmd name="section*" nl2="1">
33 <parm><xsl:value-of select="h1"/></parm>
35 <xsl:apply-templates select="*"/>
39 <xsl:template match="p">
41 <xsl:apply-templates/>
42 <cmd name="par" nl2="1" gr="0"/>
47 <xsl:template match="q">
48 <cmd name="lq"/><cmd name="lq"/>
49 <xsl:apply-templates/>
50 <cmd name="rq"/><cmd name="rq"/>
54 <xsl:template match="hr">
55 <cmd name="bigskip" gr="0" nl2="1"/>
56 <cmd name="hrule" gr="0" nl2="1"/>
59 <!-- ignore h1 and author in body -->
60 <xsl:template match="h1 | p[@align]"/>