reformat template
This commit is contained in:
parent
fc6b04ea87
commit
81ab25fdfd
1 changed files with 21 additions and 13 deletions
|
@ -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
|
||||||
|
version="2.0"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:outline="http://wkhtmltopdf.org/outline"
|
xmlns:outline="http://wkhtmltopdf.org/outline"
|
||||||
xmlns="http://www.w3.org/1999/xhtml">
|
xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
|
<xsl:output
|
||||||
|
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
|
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
|
||||||
indent="yes" />
|
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>
|
||||||
|
|
Reference in a new issue