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

Last change on this file since 3198 was 3198, checked in by Martin Svensson, 15 years ago

Added an ant task and a xsl stylesheet for helptext-import-file generation.

File size: 2.5 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 2
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 this program; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place - Suite 330,
22  Boston, MA  02111-1307, USA.
23-->
24<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
25
26  <xsl:import href="../docbook/xsl/html/docbook.xsl" />
27
28  <xsl:output method="xml" doctype-system="helpfile.dtd" indent="yes" encoding="UTF-8" />
29
30  <xsl:template match="/">
31    <xsl:comment>
32"Copyright (C) Authors contributing to this file.
33
34This file is part of BASE - BioArray Software Environment. Available at
35http://base.thep.lu.se/
36
37BASE is free software; you can redistribute it and/or modify it under the terms of the
38GNU General Public License as published by the Free Software Foundation; either version
392 of the License, or (at your option) any later version.
40
41BASE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
42without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
43PURPOSE. See the GNU General Public License for more details.
44
45You should have received a copy of the GNU General Public License along with this
46program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite
47330, Boston, MA 02111-1307, USA."
48    </xsl:comment>
49    <xsl:element name="helptexts">
50      <xsl:attribute name="clientExternalID">net.sf.basedb.clients.web</xsl:attribute>
51      <xsl:for-each select="//helptext">
52        <xsl:element name="helpitem">
53          <xsl:attribute name="externalID">
54            <xsl:value-of select="@external_id" />
55          </xsl:attribute>
56          <xsl:element name="name">
57            <xsl:value-of select="@title" />
58          </xsl:element>
59          <xsl:element name="description">
60              <xsl:apply-templates select="*"/>
61          </xsl:element>
62        </xsl:element>
63      </xsl:for-each>
64    </xsl:element>
65  </xsl:template>
66
67</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.