VirtualBox

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

最後變更 在這個檔案從81406是 73276,由 vboxsync 提交於 6 年 前

doc/manual: Big build system overhaul, because the use of entities and catalogs eliminates the need to have placeholders in XML which previously needed separate preprocessing. Many cleanups, including replacing almost all pattern rules (since their dependencies had to be too generous) and using defines instead. Also integrated many cleanups for the user manual text (which needs careful review, couldn't check yet if it uses any additional tags which some of our XSLT would ignore).

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.6 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="htmlhelp/htmlhelp.xsl"/>
5<xsl:import href="common-formatcfg.xsl"/>
6<xsl:import href="common-html-formatcfg.xsl"/>
7
8<xsl:include href="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