diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
commit | cca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch) | |
tree | 146f39ded1c938019e1ed42d30923c2ac9e86789 /src/io/doc2html.xsl | |
parent | Initial commit. (diff) | |
download | inkscape-upstream.tar.xz inkscape-upstream.zip |
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/io/doc2html.xsl')
-rw-r--r-- | src/io/doc2html.xsl | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/io/doc2html.xsl b/src/io/doc2html.xsl new file mode 100644 index 0000000..9a98c23 --- /dev/null +++ b/src/io/doc2html.xsl @@ -0,0 +1,64 @@ +<?xml version='1.0'?> +<!-- SPDX-License-Identifier: GPL-2.0-or-later --> +<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> |