Re: [xsl] Novice Question - matching entire text children

Subject: Re: [xsl] Novice Question - matching entire text children
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Mon, 20 Dec 2010 14:34:56 +0100
On 20.12.2010 14:09, David Lee wrote:
XSLT 2.0
I have a problem (probably my own misuse of XSLT) but I run into cases where

<xsl:template  match="NODE/text()">


can match more then once in a row.   I have not debugged this yet to
determine if something more complex is really the culprit (probably is),
and the text nodes matched seem to be whitespace  " \n\t .."

Maybe the '\n\t' nodes you are seeing in the output stem from whitespace in the source. See the note before : You might have thought that it is ignorable whitespace, but maybe your XML parser thought differently about that? And then these WS nodes are being sent to the output because of the built-in template rule for text nodes:
Just an idea, but difficult to judge without a working example of input, stylesheet and expected output (as Martin already pointed out, there might be a mismatch between NODE and ELEM, so it's some guessing and extrapolation is already needed to identify the actual issue).


Current Thread