1 <!-- manpage-base.xsl: 1 <!-- manpage-base.xsl: 2 special formatting for manpages rendered 2 special formatting for manpages rendered from asciidoc+docbook --> 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 version="1.0"> 4 version="1.0"> 5 5 6 <!-- these params silence some output from xml 6 <!-- these params silence some output from xmlto --> 7 <xsl:param name="man.output.quietly" select="1 7 <xsl:param name="man.output.quietly" select="1"/> 8 <xsl:param name="refentry.meta.get.quietly" se 8 <xsl:param name="refentry.meta.get.quietly" select="1"/> 9 9 10 <!-- convert asciidoc callouts to man page for 10 <!-- convert asciidoc callouts to man page format; 11 git.docbook.backslash and git.docbook.dot 11 git.docbook.backslash and git.docbook.dot params 12 must be supplied by another XSL file or o 12 must be supplied by another XSL file or other means --> 13 <xsl:template match="co"> 13 <xsl:template match="co"> 14 <xsl:value-of select="concat( 14 <xsl:value-of select="concat( 15 $git.docbook.bac 15 $git.docbook.backslash,'fB(', 16 substring-after( 16 substring-after(@id,'-'),')', 17 $git.docbook.bac 17 $git.docbook.backslash,'fR')"/> 18 </xsl:template> 18 </xsl:template> 19 <xsl:template match="calloutlist"> 19 <xsl:template match="calloutlist"> 20 <xsl:value-of select="$git.docbook.dot 20 <xsl:value-of select="$git.docbook.dot"/> 21 <xsl:text>sp </xsl:text> 21 <xsl:text>sp </xsl:text> 22 <xsl:apply-templates/> 22 <xsl:apply-templates/> 23 <xsl:text> </xsl:text> 23 <xsl:text> </xsl:text> 24 </xsl:template> 24 </xsl:template> 25 <xsl:template match="callout"> 25 <xsl:template match="callout"> 26 <xsl:value-of select="concat( 26 <xsl:value-of select="concat( 27 $git.docbook.bac 27 $git.docbook.backslash,'fB', 28 substring-after( 28 substring-after(@arearefs,'-'), 29 '. ',$git.docboo 29 '. ',$git.docbook.backslash,'fR')"/> 30 <xsl:apply-templates/> 30 <xsl:apply-templates/> 31 <xsl:value-of select="$git.docbook.dot 31 <xsl:value-of select="$git.docbook.dot"/> 32 <xsl:text>br </xsl:text> 32 <xsl:text>br </xsl:text> 33 </xsl:template> 33 </xsl:template> 34 34 35 </xsl:stylesheet> 35 </xsl:stylesheet>
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.