| 1 | <?xml version='1.0'?> |
| 2 | |
| 3 | <!-- |
| 4 | SPDX-FileCopyrightText: 2017 Philippe Proulx <pproulx@efficios.com> |
| 5 | |
| 6 | SPDX-License-Identifier: CC-BY-4.0 |
| 7 | --> |
| 8 | |
| 9 | <xsl:stylesheet version="1.0" |
| 10 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 11 | <!-- callouts --> |
| 12 | <xsl:template match="*[local-name() = 'co']"> |
| 13 | <xsl:value-of select="concat('\','fB(',substring-after(@id,'-'),')','\','fR')"/> |
| 14 | </xsl:template> |
| 15 | <xsl:template match="*[local-name() = 'calloutlist']"> |
| 16 | <xsl:value-of select="."/> |
| 17 | <xsl:text>sp </xsl:text> |
| 18 | <xsl:apply-templates/> |
| 19 | <xsl:text> </xsl:text> |
| 20 | </xsl:template> |
| 21 | <xsl:template match="*[local-name() = 'callout']"> |
| 22 | <xsl:value-of select="concat('\','fB',substring-after(@arearefs,'-'),'. ','\','fR')"/> |
| 23 | <xsl:apply-templates/> |
| 24 | <xsl:value-of select="."/> |
| 25 | <xsl:text>br </xsl:text> |
| 26 | </xsl:template> |
| 27 | |
| 28 | <!-- links --> |
| 29 | <xsl:template match="*[local-name() = 'ulink']"> |
| 30 | <xsl:apply-templates/><xsl:text> <</xsl:text><xsl:value-of select="@url"/><xsl:text>></xsl:text> |
| 31 | </xsl:template> |
| 32 | <xsl:template match="*[local-name() = 'link']"> |
| 33 | <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> |
| 34 | </xsl:template> |
| 35 | |
| 36 | <!-- literal --> |
| 37 | <xsl:template match="*[local-name() = 'literal']"> |
| 38 | <xsl:text>\fB</xsl:text> |
| 39 | <xsl:value-of select="." /> |
| 40 | <xsl:text>\fR</xsl:text> |
| 41 | </xsl:template> |
| 42 | |
| 43 | <!-- disable end notes --> |
| 44 | <xsl:param name="man.endnotes.are.numbered">0</xsl:param> |
| 45 | </xsl:stylesheet> |