Mercurial > hg > mpdl-group
comparison software/mpdl-services-new/mpiwg-mpdl-cms/build/classes/de/mpg/mpiwg/berlin/mpdl/cms/transform/tocHtml.xsl @ 25:e9fe3186670c default tip
letzter Stand eingecheckt
author | Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 21 May 2013 10:19:32 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
23:e845310098ba | 25:e9fe3186670c |
---|---|
1 <?xml version="1.0"?> | |
2 | |
3 <xsl:stylesheet | |
4 version="2.0" | |
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
6 > | |
7 | |
8 <xsl:output method="xhtml" encoding="utf-8"/> | |
9 | |
10 <xsl:param name="type"></xsl:param> | |
11 | |
12 <xsl:template match="/"> | |
13 <xsl:apply-templates select="//*:list[@type = $type]/head"/> | |
14 <xsl:apply-templates select="//*:list[@type = $type]/item"/> | |
15 </xsl:template> | |
16 | |
17 <xsl:template match="*:item"> | |
18 <xsl:variable name="n" select="@n"/> | |
19 <xsl:variable name="level" select="@lv"/> | |
20 <div> | |
21 <xsl:attribute name="class"><xsl:value-of select="'item'"/></xsl:attribute> | |
22 <xsl:value-of select="concat($n, ' ')"/> | |
23 <xsl:apply-templates/> | |
24 </div> | |
25 </xsl:template> | |
26 | |
27 <xsl:template match="*:ref"> | |
28 <xsl:variable name="o" select="@o"/> | |
29 <span> | |
30 <xsl:attribute name="class"><xsl:value-of select="'ref'"/></xsl:attribute> | |
31 <xsl:value-of select="'Page: '"/> | |
32 <xsl:apply-templates/> | |
33 </span> | |
34 </xsl:template> | |
35 | |
36 </xsl:stylesheet> |