source: trunk/gsdl-documentation/manuals/processing/xml-to-index.xsl@ 13649

Last change on this file since 13649 was 13649, checked in by lh92, 17 years ago

updated stylesheet path

  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:java="http://xml.apache.org/xslt/java"
5 extension-element-prefixes="java"
6 exclude-result-prefixes="java">
7
8 <xsl:variable name="mode">cd</xsl:variable>
9 <xsl:output method="html"/>
10 <xsl:include href="common.xsl"/>
11
12 <xsl:template match="Manual">
13 <html>
14 <head><title><xsl:value-of select="Title/Text"/></title></head>
15 <link rel="stylesheet" href="../style.css" type="text/css"/>
16 <body>
17 <h2><xsl:apply-templates select="Heading/Text"/></h2>
18 <h1><xsl:apply-templates select="Title/Text"/></h1>
19
20 <xsl:apply-templates select="Author"/>
21 <xsl:apply-templates select="Affiliation"/>
22 <xsl:apply-templates select="Text"/>
23 <xsl:apply-templates select="Comment"/>
24 <xsl:call-template name="version_and_date"/> <br/>
25
26 <xsl:apply-templates select="Section" mode="preface"/>
27
28 <dl>
29 <xsl:apply-templates select="Chapter"/>
30 </dl>
31 </body>
32</html>
33</xsl:template>
34
35 <xsl:template match="Chapter">
36 <dt><a href="Chapter_{@id}.htm"><xsl:apply-templates select="Title/Text"/></a></dt>
37 <dd><xsl:for-each select="Title">
38 <xsl:apply-templates/><br/>
39 </xsl:for-each>
40 </dd>
41 </xsl:template>
42</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.