|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Selecting text bisected by child nodes.
Gan Uesli Starling asked:
Jeff Kenton answered: Try selecting foo/text(). This will ignore your x-y-z children, but get ABC and DEF. Hm, doesn't work in either Mozilla 1.3 or Xalan-J. It still always loses the DEF. Let me abandon the sample example for an actual example. An actual XML node is like this... <op>pow(<in>2.0, -3</in>)</op> ...in which the ABC corresponds to 'pow(' and
the DEF corresponds to ')'.To experiment, I simplified my actual template all the way down to just this... <xsl:template match="op">
<xsl:value-of select="op/text()"/>
</xsl:template>The select="op/text()" lost ALL of the text, but
"../op/text()" and "node()" got as much as
the 'pow(' but still lost the ')'TIA, Gan -- Mistera Sturno - Rarest Extinct Bird <(+)__ Gan Uesli Starling
((__/)=- Kalamazoo, MI, USA
`||`
++ http://starling.usXSL-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
|

Cart








