File: addons.xsl

package info (click to toggle)
gretl 2022c-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 59,552 kB
  • sloc: ansic: 409,074; sh: 4,449; makefile: 3,222; cpp: 2,777; xml: 599; perl: 364
file content (50 lines) | stat: -rw-r--r-- 1,657 bytes parent folder | download
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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

<xsl:output method="html" encoding="utf-8"/>

<xsl:template match="/">
  <html>
    <head>
      <title>gretl addons</title>
      <link rel="stylesheet" type="text/css"
      href="../style/server.css"/>
    </head>
    <body>
      <p>[<a href="http://gretl.sourceforge.net/">gretl main page</a>]</p>

      <h1>gretl addons: &#8220;official&#8221; function packages</h1>
      <p>These packages should be installed or updated from within gretl.
      Look for the item &#8220;Check for addons&#8221; under the Help menu.
      </p>
      <p>There are also numerous 
      <a href="http://ricardo.ecn.wfu.edu/gretl/cgi-bin/gretldata.cgi?opt=SHOW_FUNCS">contributed
       function packages</a> for gretl.</p>
      <div class="gfn-info">
	<xsl:apply-templates/>
      </div>
    </body>
  </html>
</xsl:template>

<xsl:template match="gretl-addon">
  <xsl:call-template name="nl"/>
  <h2><xsl:value-of select="@name"/>: <xsl:value-of select="description"/></h2>
  
  <p>Written by <xsl:value-of select="author"/><br/>
  Current version
  <xsl:value-of select="version"/>, dated
  <xsl:value-of select="date"/><br/>	      
  Minimum gretl version required: <xsl:value-of select="@minver"/><br/>
  JEL code(s): <xsl:value-of select="tags"/><br/>
  Documentation: 
  <a href="{concat('https://sourceforge.net/projects/gretl/files/addons/doc/', @name, '.pdf')}"><xsl:value-of select="@name"/>.pdf</a>  
  </p>
</xsl:template>    

<xsl:template name="nl">
  <xsl:text>&#10;</xsl:text>  
</xsl:template>

</xsl:stylesheet>