Code

Export. add emf text rotation (Bug 681262)
[inkscape.git] / src / io / doc2html.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet
3           xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
4 <xsl:output method="html"/>
6 <xsl:template match="book">
7   <html>
8   <head>
9   <style  TYPE="text/css">
10       p
11         {
12         text-indent: 0.25in
13         }
14       h3
15         {
16         font-family: Arial, Helvetica, 'Bitstream Vera Sans', 'Luxi Sans', Verdana, Sans-Serif;
17         font-size: 24px;
18         }
19       h4
20         {
21         font-family: Arial, Helvetica, 'Bitstream Vera Sans', 'Luxi Sans', Verdana, Sans-Serif;
22         font-size: 16px;
23         }
25   </style>
26   </head>
27   <body>
28   <xsl:apply-templates/>
29   </body>
30   </html>
31 </xsl:template>
33 <xsl:template match="bookinfo">
34   <xsl:apply-templates/>
35 </xsl:template>
37 <xsl:template match="title">
38   <h3>
39   <xsl:apply-templates/>
40   </h3>
41 </xsl:template>
43 <xsl:template match="author">
44   <h4>
45   <xsl:value-of select="./firstname"/>
46   <xsl:text> </xsl:text>
47   <xsl:value-of select="./surname"/>
48   </h4>
49 </xsl:template>
52 <xsl:template match="chapter">
53   <hr/>
54   <xsl:apply-templates/>
55 </xsl:template>
57 <xsl:template match="para">
58   <p>
59   <xsl:apply-templates/>
60   </p>
61 </xsl:template>
63 </xsl:stylesheet>