expiremental support for the velocity template engine
[mir.git] / etc / producer / html2fo.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
3                       xmlns:fo="http://www.w3.org/1999/XSL/Format"
4 version="1.0" >
5
6 <!-- This stylesheet replaces the <BR /> tags that Mir 
7 uses to break paragraphs with empty blocks, 
8 which do the same thing in XSL:FO -->
9
10 <xsl:template match="br">
11   <fo:block />  
12 </xsl:template>
13
14 <xsl:template match="@*|*|processing-instruction()|comment()">
15   <xsl:copy>
16     <xsl:apply-templates select="*|@*|text()|processing-instruction()|comment()" />
17   </xsl:copy>
18 </xsl:template>
19
20 </xsl:stylesheet>