~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/io/doc2html.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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"/>
 
5
 
 
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
        }
 
24
 
 
25
  </style>
 
26
  </head>
 
27
  <body>
 
28
  <xsl:apply-templates/>
 
29
  </body>
 
30
  </html>
 
31
</xsl:template>
 
32
 
 
33
<xsl:template match="bookinfo">
 
34
  <xsl:apply-templates/>
 
35
</xsl:template>
 
36
 
 
37
<xsl:template match="title">
 
38
  <h3>
 
39
  <xsl:apply-templates/>
 
40
  </h3>
 
41
</xsl:template>
 
42
 
 
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>
 
50
 
 
51
 
 
52
<xsl:template match="chapter">
 
53
  <hr/>
 
54
  <xsl:apply-templates/>
 
55
</xsl:template>
 
56
 
 
57
<xsl:template match="para">
 
58
  <p>
 
59
  <xsl:apply-templates/>
 
60
  </p>
 
61
</xsl:template>
 
62
 
 
63
</xsl:stylesheet>