1 | <?xml version="1.0"?>
|
---|
2 |
|
---|
3 | <!--
|
---|
4 | Copyright (C) 2006-2022 Oracle and/or its affiliates.
|
---|
5 |
|
---|
6 | This file is part of VirtualBox base platform packages, as
|
---|
7 | available from https://www.virtualbox.org.
|
---|
8 |
|
---|
9 | This program 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, in version 3 of the
|
---|
12 | License.
|
---|
13 |
|
---|
14 | This program is distributed in the hope that it will be useful, but
|
---|
15 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
17 | 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, see <https://www.gnu.org/licenses>.
|
---|
21 |
|
---|
22 | SPDX-License-Identifier: GPL-3.0-only
|
---|
23 | -->
|
---|
24 |
|
---|
25 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
---|
26 |
|
---|
27 | <xsl:import href="htmlhelp/htmlhelp.xsl"/>
|
---|
28 | <xsl:import href="common-formatcfg.xsl"/>
|
---|
29 | <xsl:import href="common-html-formatcfg.xsl"/>
|
---|
30 |
|
---|
31 | <xsl:include href="titlepage-htmlhelp.xsl"/>
|
---|
32 |
|
---|
33 | <!-- Override the style sheet stuff from common-html-formatcfg.xsl, we don't
|
---|
34 | the same as the html-chunks and html-one-page. Also, the microsoft
|
---|
35 | help viewer may have limited CSS support, depending on which browser
|
---|
36 | version it emulated, so keep it simple. -->
|
---|
37 | <xsl:template name="user.head.content">
|
---|
38 | <style type="text/css">
|
---|
39 | <xsl:comment>
|
---|
40 | .cmdsynopsis p
|
---|
41 | {
|
---|
42 | padding-left: 3.4em;
|
---|
43 | text-indent: -2.2em;
|
---|
44 | }
|
---|
45 | p.nextcommand
|
---|
46 | {
|
---|
47 | margin-top: 0px;
|
---|
48 | margin-bottom: 0px;
|
---|
49 | }
|
---|
50 | p.lastcommand
|
---|
51 | {
|
---|
52 | margin-top: 0px;
|
---|
53 | }
|
---|
54 | </xsl:comment>
|
---|
55 | </style>
|
---|
56 | </xsl:template>
|
---|
57 |
|
---|
58 |
|
---|
59 | <!-- for some reason, the default docbook stuff doesn't wrap simple <arg> elements
|
---|
60 | into HTML <code>, so with a default CSS a cmdsynopsis ends up with a mix of
|
---|
61 | monospace and proportional fonts. Elsewhere we hack that in the CSS, here
|
---|
62 | that turned out to be harded, so we just wrap things in <code>, risking
|
---|
63 | nested <code> elements, but who cares as long as it works... -->
|
---|
64 | <xsl:template match="group|arg">
|
---|
65 | <xsl:choose>
|
---|
66 | <xsl:when test="name(..) = 'arg' or name(..) = 'group'">
|
---|
67 | <xsl:apply-imports/>
|
---|
68 | </xsl:when>
|
---|
69 | <xsl:otherwise>
|
---|
70 | <code><xsl:apply-imports/></code>
|
---|
71 | </xsl:otherwise>
|
---|
72 | </xsl:choose>
|
---|
73 | </xsl:template>
|
---|
74 |
|
---|
75 | </xsl:stylesheet>
|
---|
76 |
|
---|