blob: d88b469096b7eff81752bb04d3820f5accd6dd25 (
plain) (
blame)
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
|
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
"http://www.FreeBSD.org/XML/www/share/sgml/xslt10-freebsd.dtd" [
<!ENTITY title "FreeBSD Multimedia">
]>
<!-- $FreeBSD$ -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/xhtml.xsl"/>
<xsl:import href="include.xsl"/>
<xsl:variable name="title">&title;</xsl:variable>
<xsl:template name="process.sidewrap">&nav.about;</xsl:template>
<xsl:template name="process.contentwrap">
<xsl:call-template name="multimedia.pre"/>
<h1>Source List</h1>
<ul>
<xsl:for-each select="//source">
<xsl:sort select="name"/>
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="concat('#', @id)"/>
</xsl:attribute>
<xsl:value-of select="name"/>
</a>
</li>
</xsl:for-each>
</ul>
<h1>Multimedia Resources</h1>
<xsl:for-each select="//source">
<xsl:sort select="name"/>
<xsl:variable name="sourceId" select="@id"/>
<h2 id="{@id}"><xsl:value-of select="name"/></h2>
<ul>
<xsl:apply-templates select="/multimedia/items/item[@source = $sourceId]"/>
</ul>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
|