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