source: trunk/lib/docbook/preprocess/webclient_helptext.xsl @ 4509

Last change on this file since 4509 was 4509, checked in by Jari Häkkinen, 15 years ago

Addresses #1106. Missed to change reference wherefrom retrive GPLv3 license text. And some other changes.

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1<?xml version='1.0'?>
2<!--
3  $Id$
4  Copyright (C) Authors contributing to this file.
5 
6  This file is part of BASE - BioArray Software Environment.
7  Available at http://base.thep.lu.se/
8 
9  BASE is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License
11  as published by the Free Software Foundation; either version 3
12  of the License, or (at your option) any later version.
13 
14  BASE is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with BASE. If not, see <http://www.gnu.org/licenses/>.
21-->
22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
23  <xsl:import href="../docbook/xsl/html/docbook.xsl" />
24  <xsl:param name="admon.style"></xsl:param>
25
26  <xsl:output method="xml" doctype-system="helpfile.dtd" indent="yes" encoding="UTF-8" />
27
28  <xsl:template match="/">
29    <xsl:comment>
30"Copyright (C) Authors contributing to this file.
31
32This file is part of BASE - BioArray Software Environment. Available at
33http://base.thep.lu.se/
34
35BASE is free software; you can redistribute it and/or modify it under the terms of the
36GNU General Public License as published by the Free Software Foundation; either version
372 of the License, or (at your option) any later version.
38
39BASE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
40without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
41PURPOSE. See the GNU General Public License for more details.
42
43You should have received a copy of the GNU General Public License along with this
44program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite
45    </xsl:comment>
46    <xsl:element name="helptexts">
47      <xsl:attribute name="clientExternalID">net.sf.basedb.clients.web</xsl:attribute>
48      <xsl:for-each select="//helptext">
49        <xsl:element name="helpitem">
50          <xsl:attribute name="externalID">
51            <xsl:value-of select="@external_id" />
52          </xsl:attribute>
53          <xsl:element name="name">
54            <xsl:value-of select="@title" />
55          </xsl:element>
56          <xsl:element name="description">
57              <xsl:apply-templates select="*"/>
58          </xsl:element>
59        </xsl:element>
60      </xsl:for-each>
61    </xsl:element>
62  </xsl:template>
63
64  <!--  skip text marked with <nohelp> tag -->
65  <xsl:template match="nohelp">
66  </xsl:template>
67
68  <xsl:template match="seeother">
69    <h4>See also</h4>
70    <ul>
71      <xsl:for-each select="other">
72      <li>{@link <xsl:value-of select="@external_id" /><xsl:text> </xsl:text><xsl:value-of select="." />}</li>
73      </xsl:for-each>
74    </ul>
75  </xsl:template>
76
77  <xsl:template match="guibutton">
78    <btn><xsl:apply-templates /></btn>
79  </xsl:template>
80
81  <xsl:template match="guilabel">
82    <lbl><xsl:apply-templates /></lbl>
83  </xsl:template>
84
85</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.