]> matita.cs.unibo.it Git - helm.git/blob - helm/www/matita1.0/xsl/papers2xhtml.xsl
Created a new directory for Matita1.0
[helm.git] / helm / www / matita1.0 / xsl / papers2xhtml.xsl
1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2
3   <xsl:output omit-xml-declaration="yes" />
4
5   <xsl:template match="papers">
6     <ul>
7       <xsl:apply-templates />
8     </ul>
9   </xsl:template>
10
11   <xsl:template match="paper">
12     <li class="paper">
13       <xsl:apply-templates select="authors" />
14       <br />
15       <xsl:apply-templates select="title" />
16       <xsl:element name="a">
17         <xsl:attribute name="class">paper_download</xsl:attribute>
18         <xsl:attribute name="href">
19           <xsl:text>papers/</xsl:text>
20           <xsl:value-of select="@name" />
21           <xsl:text>.pdf</xsl:text>
22         </xsl:attribute>
23         <span class="pdf_logo">.pdf</span>
24       </xsl:element>
25       <xsl:element name="a">
26         <xsl:attribute name="class">paper_download</xsl:attribute>
27         <xsl:attribute name="href">
28           <xsl:text>papers/</xsl:text>
29           <xsl:value-of select="@name" />
30           <xsl:text>.ps</xsl:text>
31         </xsl:attribute>
32         <span class="ps_logo">.ps</span>
33       </xsl:element>
34       <br />
35       <xsl:apply-templates select="info" />
36       <br />
37       <xsl:apply-templates select="abstract" />
38     </li>
39   </xsl:template>
40
41   <xsl:template match="authors">
42     <span class="paper_author">
43       <xsl:for-each select="author">
44         <xsl:apply-templates />
45         <xsl:if test="position()!=last()">
46           <xsl:text>, </xsl:text>
47         </xsl:if>
48       </xsl:for-each>
49     </span>
50   </xsl:template>
51
52   <xsl:template match="title">
53     <span class="paper_title">
54       <xsl:apply-templates />
55     </span>
56   </xsl:template>
57
58   <xsl:template match="info">
59     <span class="paper_info">
60       <xsl:apply-templates />
61     </span>
62   </xsl:template>
63
64   <xsl:template match="abstract">
65     <span class="paper_abstract">
66       <xsl:apply-templates />
67     </span>
68   </xsl:template>
69
70 </xsl:stylesheet>