-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxhtml.navigation.xsl
More file actions
79 lines (63 loc) · 1.86 KB
/
Copy pathxhtml.navigation.xsl
File metadata and controls
79 lines (63 loc) · 1.86 KB
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
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl"
xmlns:navigation="http://www.evilcode.net/Exhibition/namespaces/navigation"
extension-element-prefixes="php navigation">
<!-- NAVIGATION -->
<xsl:template match="navigation:navigation">
<ul id="{@style}">
<xsl:apply-templates />
</ul>
</xsl:template>
<xsl:template match="navigation:text">
<li><p><xsl:value-of select="navigation:text" /></p></li>
</xsl:template>
<xsl:template match="navigation:header">
<li><h3><xsl:value-of select="navigation:heading" /></h3></li>
</xsl:template>
<xsl:template match="navigation:item">
<li>
<a href="{navigation:address}" title="{navigation:summary}">
<xsl:choose>
<xsl:when test="navigation:icon">
<img src="{navigation:icon}" alt="{navigation:title}" />
<h3><xsl:value-of select="navigation:title" /></h3>
<xsl:value-of select="navigation:summary" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="navigation:title" />
</xsl:otherwise>
</xsl:choose>
</a>
</li>
</xsl:template>
</xsl:stylesheet>
<!-- NAVIGATION
<xsl:template match="navigation">
<xsl:when test="box">
<li class="box">
<xsl:value-of select="box" />
</li>
</xsl:when>
<xsl:otherwise>
<li>
<a href="{address}" title="{title}">
<xsl:choose>
<xsl:when test="icon">
<img src="{icon}" alt="{title}" />
<h3><xsl:value-of select="title" /></h3>
<xsl:value-of select="summary" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="title" />
</xsl:otherwise>
</xsl:choose>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</ul>
</xsl:for-each>
</xsl:template>
-->