This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: correction:How to do a subscript from <sup>-34</sup>
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 7 May 2002 23:08:46 +0100
- Subject: RE: [xsl] correction:How to do a subscript from <sup>-34</sup>
- Reply-to: xsl-list at lists dot mulberrytech dot com
>
> How can I go through my xml file and replace the following
> with subscript:
> <sup>-34</sup>
>
Write two template rules:
<xsl:template match="node()">
<xsl:copy/>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="sup[.=-34]">
subscript
</xsl:template>
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list