-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsitemap.xslt
More file actions
34 lines (30 loc) · 1.21 KB
/
sitemap.xslt
File metadata and controls
34 lines (30 loc) · 1.21 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
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:session="http://panax.io/session"
xmlns:sitemap="http://panax.io/sitemap"
xmlns:shell="http://panax.io/shell"
xmlns:state="http://panax.io/state"
xmlns:xo="http://panax.io/xover"
exclude-result-prefixes="#default session sitemap shell state"
>
<xsl:key name="item" match="sitemap:menu" use="'#any'"/>
<xsl:key name="item" match="sitemap:catalog" use="'#any'"/>
<xsl:key name="menu-item" match="sitemap:menu" use="@xo:id"/>
<xsl:include href="widgets/panax/sitemap.xslt"/>
<xsl:output method="xml"
omit-xml-declaration="yes"
indent="yes"/>
<xsl:template mode="sitemap:target-href" match="*[@catalogName]">
<xsl:attribute name="href">
<xsl:value-of select="concat('#',translate(substring-before(@catalogName,'].['),'[]',''),'/',translate(substring-after(@catalogName,'].['),'[]',''))"/>
</xsl:attribute>
</xsl:template>
<xsl:template mode="sitemap:header" match="@*">
<span class="sidebar-brand mt-1 d-flex">
<a href="javascript:void(0)" onclick="toggleSidebar()">
<img src="assets/logotype-alpha-white.png" width="190px"/>
</a>
</span>
</xsl:template>
</xsl:stylesheet>