<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="FlowControl">
<body>
<xsl:apply-templates select="Run" />
</body>
</xsl:template>
<xsl:template match="Run">
<xsl:if test="@FontStyle = 'Italic'">
<xsl:text disable-output-escaping="yes"><em></xsl:text>
</xsl:if>
<xsl:if test="@FontWeight = 'Bold'">
<xsl:text disable-output-escaping="yes"><strong></xsl:text>
</xsl:if>
<xsl:value-of select="."/>
<xsl:if test="@FontWeight = 'Bold'">
<xsl:text disable-output-escaping="yes"></strong></xsl:text>
</xsl:if>
<xsl:if test="@FontStyle = 'Italic'">
<xsl:text disable-output-escaping="yes"></em></xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Reputation Points: 550
Solved Threads: 731
Bite my shiny metal ass!
Offline 4,177 posts
since Jul 2006