Subject: RE: correction:How to do a subscript from <sup>-34</sup>
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 7 May 2002 23:08:46 +0100
|
>
> 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|