268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<!--
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - Copyright (C) 2005, 2007, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews -
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews - file, You can obtain one at http://mozilla.org/MPL/2.0/.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein-->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater<!-- $Id: pre-latex.xsl,v 1.6 2007/06/19 23:47:13 tbox Exp $ -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein<!--
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein - Whack &mdash; into something that won't choke LaTeX.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein - There's probably a better way to do this, but this will work for now.
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews -->
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt<xsl:stylesheet version="1.0"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt xmlns:db="http://docbook.org/ns/docbook">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:variable name="mdash" select="'&#8212;'"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
01710965499bad1ef2f14b63115e76922981fd56Mark Andrews <xsl:template name="fix-mdash" match="text()[contains(., '&#8212;')]">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:param name="s" select="."/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:choose>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:when test="contains($s, $mdash)">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:value-of select="substring-before($s, $mdash)"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:text>---</xsl:text>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:call-template name="fix-mdash">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:with-param name="s" select="substring-after($s, $mdash)"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </xsl:call-template>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </xsl:when>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:otherwise>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:value-of select="$s"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </xsl:otherwise>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </xsl:choose>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </xsl:template>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:template match="@*|node()">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:copy>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:copy-of select="@*"/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:apply-templates/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </xsl:copy>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </xsl:template>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:template match="/">
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein <xsl:apply-templates/>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein </xsl:template>
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein</xsl:stylesheet>