Re: Selecting text bisected by child nodes.2003-04-22 13:06:18From: "Gan Uesli Starling" <alias(_at_)starling(_dot_)us> An actual XML node is like this... <op>pow(<in>2.0, -3</in>)</op>
This template:
<xsl:template match="op">
<html>
<body>
<p><xsl:apply-templates mode="do-nothing"/></p>
</body>
</html>
</xsl:template>
Relies on the existence of a do-nothing template for *in*:
<xsl:template match="in" mode="do-nothing"/>
And returns your desired result wrapped in p tags.
hth,
Mike
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
|
||||||||||||||||