VirtualBox

Changeset 91217 in vbox for trunk/doc


Ignore:
Timestamp:
Sep 11, 2021 12:05:14 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146872
Message:

doc: Extract man page date from an *info/pubdate node
(cf. get.refentry.date). Detect and dissect RCS Date keyword.
bugref:9186

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/doc/manual/docbook-refentry-to-manpage.xsl

    r82969 r91217  
    2626  -->
    2727
     28  <!--
     29      Extract manual's date from an *info/pubdate node (cf.
     30      get.refentry.date).  Detect RCS Date keyword.
     31  -->
     32  <xsl:template match="pubdate">
     33    <xsl:choose>
     34      <!-- careful with that keyword -->
     35      <xsl:when test="starts-with(text(), concat('$', 'Date:'))">
     36        <!-- Fetch the ISO 8601 date from inside -->
     37        <xsl:value-of select="substring(text(), 8, 10)"/>
     38      </xsl:when>
     39      <xsl:otherwise>
     40        <!-- Use as-is -->
     41        <xsl:value-of select="text()"/>
     42      </xsl:otherwise>
     43    </xsl:choose>
     44  </xsl:template>
    2845
    2946</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.

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