path: root/Documentation/manpage-1.72.xsl
diff options
authorJonas Fonseca <>2008-02-04 22:01:20 (GMT)
committerJunio C Hamano <>2008-02-05 08:30:22 (GMT)
commit7a2078b4b00fb1c5d7b0bf8155778f79377b8f2f (patch)
tree8dfd6ea267726498466ab5f8104064be9d897ffe /Documentation/manpage-1.72.xsl
parent4f395eed33816be70181a818cbce4bb7235b83be (diff)
man pages are littered with .ft C and others
Jakub Narebski <> wrote Sun, Feb 03, 2008: > Junio C Hamano wrote: > > Jakub Narebski <> writes: > > > > [From] > Julian Phillips: > > Are you using docbook xsl 1.72? There are known problems building the > > manpages with that version. 1.71 works, and 1.73 should work when it get > > released. I was able to solve this problem with this patch, which adds a XSL file used specifically for DOCBOOK_XSL_172=YesPlease and where dots and backslashes are escaped properly so they won't be substituted to the wrong thing further down the "DocBook XSL pipeline". Doing the escaping in the existing callout.xsl breaks v1.70.1. Hopefully v1.73 will end this part of the manpage nightmare. Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/manpage-1.72.xsl')
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/manpage-1.72.xsl b/Documentation/manpage-1.72.xsl
new file mode 100644
index 0000000..fe3cd72
--- /dev/null
+++ b/Documentation/manpage-1.72.xsl
@@ -0,0 +1,17 @@
+<!-- callout.xsl: converts asciidoc callouts to man page format -->
+<xsl:stylesheet xmlns:xsl="" version="1.0">
+<xsl:template match="co">
+ <xsl:value-of select="concat('&#x2593;fB(',substring-after(@id,'-'),')&#x2593;fR')"/>
+<xsl:template match="calloutlist">
+ <xsl:text>&#x2302;sp&#10;</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>&#10;</xsl:text>
+<xsl:template match="callout">
+ <xsl:value-of select="concat('&#x2593;fB',substring-after(@arearefs,'-'),'. &#x2593;fR')"/>
+ <xsl:apply-templates/>
+ <xsl:text>&#x2302;br&#10;</xsl:text>