-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjats-parsoid.xsl
62 lines (51 loc) · 1.76 KB
/
jats-parsoid.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:mml="http://www.w3.org/1998/Math/MathML"
exclude-result-prefixes="xlink mml">
<xsl:include href="jats-common.xsl"/>
<xsl:output method="html" doctype-system="about:legacy-compat"/>
<xsl:template match="/">
<html>
<xsl:call-template name="make-html-header"/>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template name="make-html-header">
<head>
<title>
<xsl:text>Converted JATS paper:</xsl:text>
</title>
</head>
</xsl:template>
<xsl:template match="article">
<xsl:call-template name="make-article"/>
</xsl:template>
<xsl:template name="make-article">
<xsl:apply-templates select="front"/>
<xsl:for-each select="body">
<h2 id="Paper"><xsl:text>Paper</xsl:text></h2>
<xsl:apply-templates/>
</xsl:for-each>
<xsl:apply-templates select="back"/>
</xsl:template>
<xsl:template match="front">
<section>
<h2 id="Journal_Information"><xsl:text>Journal Information</xsl:text></h2>
<xsl:for-each select="journal-meta">
<xsl:apply-templates/>
</xsl:for-each> <!-- journal-meta -->
</section>
<section>
<xsl:for-each select="article-meta">
<xsl:apply-templates/>
</xsl:for-each> <!-- article-meta -->
</section>
</xsl:template>
<xsl:template match="back">
<xsl:apply-templates select="ack | ref-list"/>
</xsl:template>
</xsl:stylesheet>