RE: [xsl] Selecting text bisected by child nodes. -- SOLVED

Subject: RE: [xsl] Selecting text bisected by child nodes. -- SOLVED
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Tue, 22 Apr 2003 16:28:11 -0400
[Gan Uesli Starling]

> Answer:
> 
> Get left side of childe nodes with...
> 
> <xsl:value-of select="text()[1]"/>
> 
> ...and right side with...
> 
> <xsl:value-of select="text()[2]"/>
> 
> ...the index in square brackets does the
> trick.
> 

That would only work if you had a maximum of two text fragments.  It
would be better to assume that you might sometime have more.

Cheers,

Tom P

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread