Last change
on this file since 56475 was 56189, checked in by vboxsync, 10 years ago |
Make HTML help prettier. Small CSS adjustments for online HTML.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
977 bytes
|
Line | |
---|
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="$DOCBOOKPATH/htmlhelp/htmlhelp.xsl"/>
|
---|
5 | <xsl:import href="$CFGPATH/common-formatcfg.xsl"/>
|
---|
6 |
|
---|
7 | <xsl:include href="$TARGETPATH/titlepage-htmlhelp.xsl"/>
|
---|
8 |
|
---|
9 | <!-- for some reason, the default docbook stuff doesn't wrap simple <arg> elements
|
---|
10 | into HTML <code>, so with a default CSS a cmdsynopsis ends up with a mix of
|
---|
11 | monospace and proportional fonts. Elsewhere we hack that in the CSS, here
|
---|
12 | that turned out to be harded, so we just wrap things in <code>, risking
|
---|
13 | nested <code> elements, but who cares as long as it works... -->
|
---|
14 | <xsl:template match="group|arg">
|
---|
15 | <xsl:choose>
|
---|
16 | <xsl:when test="name(..) = 'arg' or name(..) = 'group'">
|
---|
17 | <xsl:apply-imports/>
|
---|
18 | </xsl:when>
|
---|
19 | <xsl:otherwise>
|
---|
20 | <code><xsl:apply-imports/></code>
|
---|
21 | </xsl:otherwise>
|
---|
22 | </xsl:choose>
|
---|
23 | </xsl:template>
|
---|
24 |
|
---|
25 | </xsl:stylesheet>
|
---|
26 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.