1 <xsl:stylesheet version='1.0'
2 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
3 xmlns:rnd='http://docbook.org/ns/docbook/roundtrip'
4 xmlns:db='http://docbook.org/ns/docbook'
5 exclude-result-prefixes='db'>
7 <!-- ********************************************************************
9 ********************************************************************
11 This file is part of the XSL DocBook Stylesheet distribution.
12 See ../README or http://nwalsh.com/docbook/xsl/ for copyright
13 and other information.
15 ******************************************************************** -->
17 <!-- rnd:map-paragraph-style and rd:map-character-style
18 allows the application to customise
19 the style names used by overriding this template.
20 The idea is to map custom names back to standard names. -->
21 <xsl:template name='rnd:map-paragraph-style'>
22 <xsl:param name='style'/>
24 <xsl:when test='starts-with($style, "Normal")'/>
26 <!-- Probably should fold all style names to lower-case -->
27 <xsl:when test='$style = "Caption"'>caption</xsl:when>
30 <xsl:value-of select='$style'/>
34 <xsl:template name='rnd:map-character-style'>
35 <xsl:param name='style'/>
36 <xsl:value-of select='$style'/>