<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/>
<xsl:template match="inline">
<inline>
<xsl:apply-templates select="." mode="fs"/>
</inline>
</xsl:template>
<xsl:template match="inline" mode="fs">
<xsl:apply-templates select="." mode="fv"/>
</xsl:template>
<xsl:template match="inline[(_at_)font-style]" mode="fs">
<emphasis format="{(_at_)font-style}">
<xsl:apply-templates select="." mode="fv"/>
</emphasis>
</xsl:template>
<xsl:template match="inline" mode="fv">
<xsl:apply-templates select="." mode="fw"/>
</xsl:template>
<xsl:template match="inline[(_at_)font-variant]" mode="fv">
<emphasis format="{(_at_)font-variant}">
<xsl:apply-templates select="." mode="fw"/>
</emphasis>
</xsl:template>
<xsl:template match="inline" mode="fw">
<xsl:apply-templates select="." mode="tu"/>
</xsl:template>
<xsl:template match="inline[(_at_)font-weight]" mode="fw">
<emphasis format="{(_at_)font-weight}">
<xsl:apply-templates select="." mode="tu"/>
</emphasis>
</xsl:template>
<xsl:template match="inline" mode="tu">
<xsl:apply-templates select="." mode="va"/>
</xsl:template>
<xsl:template match="inline[(_at_)text-underline-style]" mode="tu">
<emphasis format="{(_at_)text-underline-style}">
<xsl:apply-templates select="." mode="va"/>
</emphasis>
</xsl:template>
<xsl:template match="inline" mode="va">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="inline[(_at_)vertical-alignment]" mode="va">
<xsl:element name="{(_at_)vertical-alignment}">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
$ saxon inline.xml inline.xsl
<?xml version="1.0" encoding="utf-8"?>
<inline>
<emphasis format="italic">
<emphasis format="small-caps">
<emphasis format="bold">
<superscript>text</superscript>
</emphasis>
</emphasis>
</emphasis>
</inline>
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--