cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaus Malorny <Klaus.Malo...@knipp.de>
Subject Re: Text elements in XSLT
Date Tue, 22 Aug 2000 19:42:28 GMT


Manfred Knobloch wrote:
> 
> per@onclave.com schreibt:
> >
> >
> >> per@onclave.com schreibt:
> >> >Why does this XSL snippet return '[Level1]',
> >> >and not '[Level1 /Level1]' with the following data?
> >>
> >> The text nodes seem to be treated as two separate nodes - don't ask me
> >> why. Probably you try
> >> this xslt code
> 
> ok, then the problem is the text() function which only returns the first
> text-node and disregards all following.
> This is what M. Kays book says.
> 

It seems to me that not the text() function causes the behaviour but the
<xsl:value-of> element. Micheal Kay's "XSLT Programmer's Reference" book says on
page 306 that only the first node of a node-set is used and all others are
ignored.

regards,
Klaus Malorny

Mime
View raw message