|
Subject: [xsl] Converting logical <em>s to physical <i>s (nesting problem) From: Michael Stillwell <mjs@xxxxxxxxx> Date: Fri, 18 Jan 2002 10:34:04 +1100 |
<xsl:template match="em">
<xsl:choose>
<xsl:when test="count(ancestor::em) mod 2 = 0">
<em><xsl:apply-templates/></em>
</xsl:when>
<xsl:otherwise>
</em><xsl:apply-templates/><em>
</xsl:otherwise>
</xsl:choose>
</xsl:template> <xsl:template match="*">
<xsl:element name="{name(.)}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>-- http://beebo.org
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Get an element with max. , Xiaocun Xu | Thread | Re: [xsl] Converting logical <em>s , David Carlisle |
| [xsl] Get an element with max. numb, Xiaocun Xu | Date | RE: [xsl] Alternative to variable i, Michael Kay |
| Month |