Re: [xsl] Use of separator

Subject: Re: [xsl] Use of separator
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 8 Aug 2006 09:50:28 +0100
On 8/8/06, David Carlisle <davidc@xxxxxxxxx> wrote:

>Isn't it that adjacent text nodes are being merged before the > separator is applied?

no the separator is added between the string value of each item in the
sequence, resulting in a string that is then used to generate a single
text node, this node may merge with other text nodes generated under the
same parent, but that happens after separators are added.

I've read the spec differently then. In 5.7.2 Constructing Simple Content the order is:

1. Zero-length text nodes in the sequence are discarded.
2. Adjacent text nodes in the sequence are merged into a single text node.
3. The sequence is atomized. adjacent text nodes are merged before the sequence is atomized,
giving a sequence of length 1.


Current Thread