[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: correction:How to do a subscript from <sup>-
<pandianoliver@xxxxxxxxxxxx>] How can I go through my xml file and replace the following with subscript: <sup>-34</sup> [Tom P] Assuming that you want to change that to <sub>-34</sub> you can use <xsl:template match='sup'> <sub><xsl:value-of select='.'/></sub> </xsl:template> To make sure this template gets called, you will want to have some variation of <xsl:apply-templates> in the stylesheet. If there could also be child elements within the "sup" element, you could use <xsl:template match='sup'> <sub><xsl:apply-templates/></sub> </xsl:template> For sub- and super-scripts, probably not needed. Cheers, Tom P XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|