Project

General

Profile

Download (1.12 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / flarecast / data / xslt / index.xsl @ d2a8c3fd

1 d2a8c3fd Marc NICOLAS
<?xml version="1.0" encoding="UTF-8"?>
2
3
<xsl:stylesheet version="1.0" 
4
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5
	xmlns:fo="http://www.w3.org/1999/XSL/Format">
6
7
	<xsl:template match="/">
8
9
	<html>
10
		<head>
11
		<title>Order records</title>
12
		
13
		</head>
14
			<body>
15
				<h1>order records</h1>
16
				
17
				
18
					<xsl:for-each select="list/record/attributeValues">
19
		
20
							<ul>	
21
							<xsl:for-each select="./attributeValue">
22
					
23
							
24
								<li>
25
								<xsl:choose>
26
									<xsl:when test="substring(value,1,5)='data/'">
27
										<xsl:value-of select="name"/> : 
28
										<xsl:element name="a">
29
										<xsl:attribute name="href">
30
											<xsl:value-of select="value"/>
31
										</xsl:attribute>
32
										<xsl:value-of select="value"/>
33
										</xsl:element>
34
										
35
									</xsl:when>
36
										
37
									<xsl:otherwise>
38
										<xsl:value-of select="name"/> : <xsl:value-of select="value"/>
39
									</xsl:otherwise>
40
								
41
								</xsl:choose>
42
								
43
								
44
								</li>
45
					
46
							</xsl:for-each>					
47
							</ul>			
48
					</xsl:for-each>
49
				
50
				
51
			</body>
52
			
53
	</html>
54
55
	</xsl:template>
56
57
58
</xsl:stylesheet>