VirtualBox

source: vbox/trunk/doc/manual/docbook-refentry-to-manpage.xsl@ 96300

Last change on this file since 96300 was 96300, checked in by vboxsync, 22 months ago

doc: comment fixing

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1<?xml version="1.0"?>
2<!--
3 docbook-to-man.xsl:
4 XSLT stylesheet that renders a refentry into a troff manpage.
5-->
6<!--
7 Copyright (C) 2006-2020 Oracle Corporation
8
9 This file is part of VirtualBox Open Source Edition (OSE), as
10 available from http://www.virtualbox.org. This file is free software;
11 you can redistribute it and/or modify it under the terms of the GNU
12 General Public License (GPL) as published by the Free Software
13 Foundation, in version 2 as it comes in the "COPYING" file of the
14 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16-->
17
18<xsl:stylesheet
19 version="1.0"
20 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
21
22 <xsl:import href="manpages/docbook.xsl"/>
23
24 <!--
25 <xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/>
26 <xsl:strip-space elements="*"/>
27 -->
28
29 <!--
30 Extract manual's date from an *info/pubdate node (cf.
31 get.refentry.date). Detect RCS Date keyword.
32 -->
33 <xsl:template match="pubdate">
34 <xsl:choose>
35 <!-- careful with that keyword -->
36 <xsl:when test="starts-with(text(), concat('$', 'Date:'))">
37 <!-- Fetch the ISO 8601 date from inside -->
38 <xsl:value-of select="substring(text(), 8, 10)"/>
39 </xsl:when>
40 <xsl:otherwise>
41 <!-- Use as-is -->
42 <xsl:value-of select="text()"/>
43 </xsl:otherwise>
44 </xsl:choose>
45 </xsl:template>
46
47</xsl:stylesheet>
48
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use