Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Stylesheets/ditastylesheet.xsl
blob: 680fd86e772dae6a648442468300270dc78a8cf2 (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!-- Copyright (C) IBM Corporation 2008 -->
<?xml version="1.0"?>
<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<head>
	<title><xsl:value-of select="reference/title" /></title>
	<link rel="stylesheet" type="text/css" href="ditastyle.css" title="Selected Stylesheet" />
</head>
<body>
	<p>
		<a href="librarymap.ditamap">Return to index</a>
	</p>
	<h1>
		<xsl:value-of select="reference/title" />
	</h1>

	<p>
		<xsl:copy-of select="reference/shortdesc" />
		<xsl:if test="contains(reference/section/p/@id,'shortdesc')">
			<xsl:for-each select="reference/section/p">
				<xsl:for-each select="image">
					<img>
					<xsl:attribute name="src">
				        <xsl:value-of select="@href" />
				        </xsl:attribute>
					</img>
				</xsl:for-each>
			<xsl:copy-of select="ph" />
			</xsl:for-each>
		</xsl:if>
	</p>

	<xsl:for-each select="reference/refbody">
		<p>
			<xsl:copy-of select="p" />
		</p>
	</xsl:for-each>

	<xsl:for-each select="reference/reference">
		<h2>
			<xsl:value-of select="title" />
		</h2>

		<xsl:for-each select="refbody">
			<h3>
				<xsl:value-of select="title" />
			</h3>
			<p>
				<xsl:value-of select="p" />
			</p>
		</xsl:for-each>

		<xsl:for-each select="refbody/section">
			<h3>
				<xsl:value-of select="title" />
			</h3>
		<xsl:for-each select="p">
			<p>
			<xsl:for-each select="image">
				<img>
				<xsl:attribute name="src">
			        <xsl:value-of select="@href" />
			        </xsl:attribute>
				</img>
			</xsl:for-each>
			<xsl:copy-of select="ph" />
			</p>
		</xsl:for-each>
		</xsl:for-each>
<xsl:comment>
		<xsl:copy-of select="refbody/section/ul" />
		<xsl:copy-of select="refbody/section/ol" />
</xsl:comment>
	</xsl:for-each>

	<xsl:if test="not(contains(reference/section/p/@id,'shortdesc'))">
	<xsl:for-each select="reference">
		<xsl:for-each select="section/p">
			<p>
			<xsl:for-each select="image">
				<img>
				<xsl:attribute name="src">
			        <xsl:value-of select="@href" />
			        </xsl:attribute>
				</img>
			</xsl:for-each>
			<xsl:copy-of select="ph" />
			</p>
		</xsl:for-each>
	</xsl:for-each>
	</xsl:if>
</body>
</html>