VirtualBox

source: vbox/trunk/doc/manual/docbook-refentry-to-manual-overview.xsl@ 56192

Last change on this file since 56192 was 56192, checked in by vboxsync, 10 years ago

Extract the necessary bits for the VBoxManage Commands Overview section from the refentry file(s).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1<?xml version="1.0"?>
2<!--
3 docbook-refentry-to-manual-sect1.xsl:
4 XSLT stylesheet for nicking the refsynopsisdiv bit of a
5 refentry (manpage) for use in the command overview section
6 in the user manual.
7
8 Copyright (C) 2006-2015 Oracle Corporation
9
10 This file is part of VirtualBox Open Source Edition (OSE), as
11 available from http://www.virtualbox.org. This file is free software;
12 you can redistribute it and/or modify it under the terms of the GNU
13 General Public License (GPL) as published by the Free Software
14 Foundation, in version 2 as it comes in the "COPYING" file of the
15 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17-->
18
19<xsl:stylesheet
20 version="1.0"
21 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
22 >
23
24 <xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/>
25 <xsl:strip-space elements="*"/>
26
27
28<!-- Base operation is to copy. -->
29<xsl:template match="node()|@*">
30 <xsl:copy>
31 <xsl:apply-templates select="node()|@*"/>
32 </xsl:copy>
33</xsl:template>
34
35<!--
36 The refentry element is the top level one. We only process the
37 refsynopsisdiv sub element within it, since that is all we want.
38 -->
39<xsl:template match="refentry">
40 <xsl:apply-templates select="refsynopsisdiv"/>
41</xsl:template>
42
43<!--
44 Translate the refsynopsisdiv into a refsect1. There is special handling
45 of this in the HTML CSS and in the latex conversion XSLT.
46 -->
47<xsl:template match="refsynopsisdiv">
48 <refsect1>
49 <xsl:apply-templates select="node()|@*"/>
50 </refsect1>
51</xsl:template>
52
53<!-- Remove all remarks (for now). -->
54<xsl:template match="remark"/>
55
56
57</xsl:stylesheet>
58
Note: See TracBrowser for help on using the repository browser.

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