Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 56678 invoked from network); 22 Aug 2000 18:43:06 -0000 Received: from hp9000.do.knipp.de (@195.253.2.54) by locus.apache.org with SMTP; 22 Aug 2000 18:43:06 -0000 Received: from knipp.de (logan5.knipp.de [194.77.55.101]) by hp9000.do.knipp.de (8.9.3 (PHNE_18979)/8.9.3) with ESMTP id UAA28042; Tue, 22 Aug 2000 20:43:00 +0200 (METDST) Message-ID: <39A2D7A4.71EFD5CB@knipp.de> Date: Tue, 22 Aug 2000 20:42:28 +0100 From: Klaus Malorny X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: de,en MIME-Version: 1.0 To: cocoon-users@xml.apache.org CC: per@onclave.com Subject: Re: Text elements in XSLT References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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 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