VirtualBox

source: vbox/trunk/doc/manual/docbook-htmlhelp-formatcfg.xsl@ 96300

最後變更 在這個檔案從96300是 96300,由 vboxsync 提交於 3 年 前

doc: comment fixing

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.1 KB
 
1<?xml version="1.0"?>
2
3<!--
4 Copyright (C) 2006-2022 Oracle Corporation
5
6 This file is part of VirtualBox Open Source Edition (OSE), as
7 available from http://www.alldomusa.eu.org. This file is free software;
8 you can redistribute it and/or modify it under the terms of the GNU
9 General Public License (GPL) as published by the Free Software
10 Foundation, in version 2 as it comes in the "COPYING" file of the
11 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
12 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
13-->
14
15<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
16
17<xsl:import href="htmlhelp/htmlhelp.xsl"/>
18<xsl:import href="common-formatcfg.xsl"/>
19<xsl:import href="common-html-formatcfg.xsl"/>
20
21<xsl:include href="titlepage-htmlhelp.xsl"/>
22
23<!-- Override the style sheet stuff from common-html-formatcfg.xsl, we don't
24 the same as the html-chunks and html-one-page. Also, the microsoft
25 help viewer may have limited CSS support, depending on which browser
26 version it emulated, so keep it simple. -->
27<xsl:template name="user.head.content">
28 <style type="text/css">
29 <xsl:comment>
30 .cmdsynopsis p
31 {
32 padding-left: 3.4em;
33 text-indent: -2.2em;
34 }
35 p.nextcommand
36 {
37 margin-top: 0px;
38 margin-bottom: 0px;
39 }
40 p.lastcommand
41 {
42 margin-top: 0px;
43 }
44 </xsl:comment>
45 </style>
46</xsl:template>
47
48
49<!-- for some reason, the default docbook stuff doesn't wrap simple <arg> elements
50 into HTML <code>, so with a default CSS a cmdsynopsis ends up with a mix of
51 monospace and proportional fonts. Elsewhere we hack that in the CSS, here
52 that turned out to be harded, so we just wrap things in <code>, risking
53 nested <code> elements, but who cares as long as it works... -->
54<xsl:template match="group|arg">
55 <xsl:choose>
56 <xsl:when test="name(..) = 'arg' or name(..) = 'group'">
57 <xsl:apply-imports/>
58 </xsl:when>
59 <xsl:otherwise>
60 <code><xsl:apply-imports/></code>
61 </xsl:otherwise>
62 </xsl:choose>
63</xsl:template>
64
65</xsl:stylesheet>
66
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette