xsl-list
[Top] [All Lists]

Re: [xsl] Use of separator

2006-08-08 01:50:51
On 8/8/06, David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> 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.

...so adjacent text nodes are merged before the sequence is atomized,
giving a sequence of length 1.

cheers
andrew

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>