Re: [xsl] Can grouping here the solution ?

Subject: Re: [xsl] Can grouping here the solution ?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 22 Nov 2011 22:09:33 +0000
actually using text() makes your code more fragile. If the input has any comments for example...

Using text() can also give problems with XPath processors running against a DOM, if they fail to normalize the DOM so that it has no adjacent text nodes. Adjacent text nodes occur quite often in DOM, for example when CDATA sections or entity references are used. A conformant XPath processor should treat a group of adjacent text nodes as a single node, but not all do so.

Michael Kay

Current Thread