-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manpage: avoid using 'stats' to improve portability (closes #72)
- Loading branch information
Showing
3 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<!-- This file is part of dvisvgm --> | ||
<!-- Copyright (C) 2015-2017 Martin Gieseking <[email protected]> --> | ||
<xsl:stylesheet version="1.0" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:date="http://exslt.org/dates-and-times" | ||
extension-element-prefixes="date"> | ||
|
||
<xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/> | ||
|
||
<!-- add date to refmeta element --> | ||
<xsl:template match="refmeta"> | ||
<xsl:copy> | ||
<xsl:copy-of select="*"/> | ||
<xsl:variable name="date" select="date:date()"/> | ||
<xsl:if test="$date"> | ||
<refmiscinfo class="date"> | ||
<xsl:value-of select="substring($date, 1, 10)"/> | ||
</refmiscinfo> | ||
</xsl:if> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<!-- copy everything else unchanged --> | ||
<xsl:template match="@*|node()"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="@*|node()"/> | ||
</xsl:copy> | ||
</xsl:template> | ||
</xsl:stylesheet> |