VirtualBox

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

最後變更 在這個檔案從61473是 56536,由 vboxsync 提交於 9 年 前

More cleanups

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.7 KB
 
1<?xml version="1.0"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
4<xsl:import href="@VBOX_PATH_DOCBOOK@/htmlhelp/htmlhelp.xsl"/>
5<xsl:import href="@VBOX_PATH_MANUAL_SRC@/common-formatcfg.xsl"/>
6<xsl:import href="@VBOX_PATH_MANUAL_SRC@/common-html-formatcfg.xsl"/>
7
8<xsl:include href="@VBOX_PATH_MANUAL_OUT_LANG@/titlepage-htmlhelp.xsl"/>
9
10<!-- Override the style sheet stuff from common-html-formatcfg.xsl, we don't
11 the same as the html-chunks and html-one-page. Also, the microsoft
12 help viewer may have limited CSS support, depending on which browser
13 version it emulated, so keep it simple. -->
14<xsl:template name="user.head.content">
15 <style type="text/css">
16 <xsl:comment>
17 .cmdsynopsis p
18 {
19 padding-left: 3.4em;
20 text-indent: -2.2em;
21 }
22 p.nextcommand
23 {
24 margin-top: 0px;
25 margin-bottom: 0px;
26 }
27 p.lastcommand
28 {
29 margin-top: 0px;
30 }
31 </xsl:comment>
32 </style>
33</xsl:template>
34
35
36<!-- for some reason, the default docbook stuff doesn't wrap simple <arg> elements
37 into HTML <code>, so with a default CSS a cmdsynopsis ends up with a mix of
38 monospace and proportional fonts. Elsewhere we hack that in the CSS, here
39 that turned out to be harded, so we just wrap things in <code>, risking
40 nested <code> elements, but who cares as long as it works... -->
41<xsl:template match="group|arg">
42 <xsl:choose>
43 <xsl:when test="name(..) = 'arg' or name(..) = 'group'">
44 <xsl:apply-imports/>
45 </xsl:when>
46 <xsl:otherwise>
47 <code><xsl:apply-imports/></code>
48 </xsl:otherwise>
49 </xsl:choose>
50</xsl:template>
51
52</xsl:stylesheet>
53
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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