diff options
| author | MenTaLguY <mental@rydia.net> | 2006-01-16 02:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-01-16 02:36:01 +0000 |
| commit | 179fa413b047bede6e32109e2ce82437c5fb8d34 (patch) | |
| tree | a5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/io/doc2html.xsl | |
| download | inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip | |
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/io/doc2html.xsl')
| -rw-r--r-- | src/io/doc2html.xsl | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/io/doc2html.xsl b/src/io/doc2html.xsl new file mode 100644 index 000000000..f8734a1c2 --- /dev/null +++ b/src/io/doc2html.xsl @@ -0,0 +1,63 @@ +<?xml version='1.0'?> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> +<xsl:output method="html"/> + +<xsl:template match="book"> + <html> + <head> + <style TYPE="text/css"> + p + { + text-indent: 0.25in + } + h3 + { + font-family: Arial, Helvetica, 'Bitstream Vera Sans', 'Luxi Sans', Verdana, Sans-Serif; + font-size: 24px; + } + h4 + { + font-family: Arial, Helvetica, 'Bitstream Vera Sans', 'Luxi Sans', Verdana, Sans-Serif; + font-size: 16px; + } + + </style> + </head> + <body> + <xsl:apply-templates/> + </body> + </html> +</xsl:template> + +<xsl:template match="bookinfo"> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="title"> + <h3> + <xsl:apply-templates/> + </h3> +</xsl:template> + +<xsl:template match="author"> + <h4> + <xsl:value-of select="./firstname"/> + <xsl:text> </xsl:text> + <xsl:value-of select="./surname"/> + </h4> +</xsl:template> + + +<xsl:template match="chapter"> + <hr/> + <xsl:apply-templates/> +</xsl:template> + +<xsl:template match="para"> + <p> + <xsl:apply-templates/> + </p> +</xsl:template> + +</xsl:stylesheet> |
