5 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
6 xmlns:
str=
"http://exslt.org/strings"
7 extension-element-prefixes=
"str">
9 <xsl:output method=
"xml"/>
11 <xsl:template match=
"function|command|literal|varname|filename|option|quote">`
<xsl:apply-templates/>'
</xsl:template>
13 <xsl:template match=
"token"><xsl:text> </xsl:text><xsl:apply-templates /><xsl:text>
14 </xsl:text></xsl:template>
16 <xsl:template match=
"screen|programlisting">
17 <screen><xsl:apply-templates select=
"str:split(., '
')" /></screen>
20 <xsl:template match=
"section[following::section]">
22 <xsl:apply-templates />
28 <xsl:template match=
"*">
29 <xsl:element name=
"{name(.)}" namespace=
"{namespace-uri(.)}">
30 <xsl:copy-of select=
"namespace::*" />
31 <xsl:for-each select=
"@*">
32 <xsl:attribute name=
"{name(.)}" namespace=
"{namespace-uri(.)}">
33 <xsl:value-of select=
"."/>
36 <xsl:apply-templates/>
40 <xsl:template match=
"text()">
41 <xsl:value-of select=
"translate(., '‘’“”—', concat("`'", '""-'))" />