reformat template

This commit is contained in:
Jake Howard 2017-05-17 18:04:45 +01:00
parent fc6b04ea87
commit 81ab25fdfd

View file

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
xmlns:outline="http://wkhtmltopdf.org/outline" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"> xmlns:outline="http://wkhtmltopdf.org/outline"
<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" xmlns="http://www.w3.org/1999/xhtml">
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" <xsl:output
indent="yes" /> doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
indent="yes" />
<xsl:template match="outline:outline"> <xsl:template match="outline:outline">
<html> <html>
<head> <head>
<title>Table of Contents</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style> <style>
h1 { h1 {
text-align: center; text-align: center;
@ -33,7 +33,9 @@
</head> </head>
<body> <body>
<h1>Table of Contents</h1> <h1>Table of Contents</h1>
<ul><xsl:apply-templates select="outline:item/outline:item"/></ul> <ul>
<xsl:apply-templates select="outline:item/outline:item"/>
</ul>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>
@ -43,14 +45,20 @@
<div> <div>
<a> <a>
<xsl:if test="@link"> <xsl:if test="@link">
<xsl:attribute name="href"><xsl:value-of select="@link"/></xsl:attribute> <xsl:attribute name="href">
<xsl:value-of select="@link"/>
</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:if test="@backLink"> <xsl:if test="@backLink">
<xsl:attribute name="name"><xsl:value-of select="@backLink"/></xsl:attribute> <xsl:attribute name="name">
<xsl:value-of select="@backLink"/>
</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:value-of select="@title" /> <xsl:value-of select="@title" />
</a> </a>
<span> <xsl:value-of select="@page" /> </span> <span>
<xsl:value-of select="@page" />
</span>
</div> </div>
</xsl:if> </xsl:if>
<ul> <ul>