This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Accessing text between nodes


Thomas B. Passin wrote:-

> Use <xsl:value-of select='text()'/> instead.  This will select the text
node
> that belongs to a Node element.  The only text element of Node is "Hello",
> and that is what displays.
>

Sorry to correct you Tom, but in the example the Node element contains 3
child text nodes ("Hello" and 2 whitespace-only nodes).

> > <Node>Hello
> > <SubNode>Hello Here!</SubNode>
> > <SubNode>Hello Here!</SubNode>
> > </Node>

~Rob


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]