InfoLister: sort rows in --list-java-properties and --list-environment-variables
1 <?xml version="1.0" encoding="UTF-8"?>
4 Copyright © 2013 František Kučera (frantovo.cz)
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 This XSLT can be used for viewing config files in a web browser (Firefox, rekonq etc.)
24 <xsl:stylesheet version="1.0"
25 xmlns="http://www.w3.org/1999/xhtml"
26 xmlns:h="http://www.w3.org/1999/xhtml"
27 xmlns:c="https://sql-dk.globalcode.info/xmlns/configuration"
28 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
29 xmlns:fn="http://www.w3.org/2005/xpath-functions"
30 xmlns:svg="http://www.w3.org/2000/svg"
31 xmlns:xs="http://www.w3.org/2001/XMLSchema"
32 exclude-result-prefixes="fn h p xs">
37 doctype-public="-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
38 doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"/>
40 <xsl:param name="header" select="'SQL-DK configuration'"/>
42 <xsl:template match="/">
45 <title><xsl:value-of select="$header"/></title>
46 <style type="text/css">
49 background-color: #eee;
61 border: 1px solid #ddd;
62 background-color: #e8e8e8;
64 text-shadow: 2px 2px 2px #aaa;
77 border-collapse:collapse;
82 border: 1px solid #ddd;
95 background-color: #e9e9e9;
116 <h1><xsl:value-of select="$header"/></h1>
119 This file defines per-user configuration of <a href="https://sql-dk.globalcode.info/">SQL-DK</a>
120 – an SQL batch client.
124 <h2>Database connections</h2>
126 <p>This databases are configured:</p>
129 <xsl:when test="c:configuration/c:database">
141 <xsl:for-each select="c:configuration/c:database">
143 <td><xsl:value-of select="c:name"/></td>
144 <td><xsl:value-of select="c:userName"/></td>
145 <td><xsl:value-of select="c:url"/></td>
146 <td><xsl:value-of select="c:driver"/></td>
147 <td><ul><xsl:apply-templates select="c:property"/></ul></td>
153 <xsl:otherwise><p>no databases are configured</p></xsl:otherwise>
159 <li>passwords are hidden in this output</li>
160 <li>JDBC drivers are not mandatory – not needed in SQL-DK, but sometimes useful when <code>jdbc-dk-driver</code> is used in other applications to load SQL-DK's database connections</li>
165 <h2>Output formatters</h2>
170 <xsl:when test="c:configuration/c:defaultFormatter"><xsl:value-of select="c:configuration/c:defaultFormatter"/></xsl:when>
171 <xsl:otherwise>none (built-in default will be used)</xsl:otherwise>
176 <xsl:when test="c:configuration/c:formatter">
186 <xsl:for-each select="c:configuration/c:formatter">
188 <td><xsl:value-of select="c:name"/></td>
189 <td><xsl:value-of select="c:class"/></td>
190 <td><ul><xsl:apply-templates select="c:property"/></ul></td>
196 <xsl:otherwise><p>no additional formatters are defined (built-in defaults will be used)</p></xsl:otherwise>
203 <xsl:template match="c:property">
205 <xsl:value-of select="@name"/> = <xsl:value-of select="."/>