DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12090>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12090

<xsl:for-each> iterates over phantom nodes.

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2002-08-28 10:13 -------
The phantom nodes that you're seeing are actually text nodes in the document; 
they correspond to the white space between the <parent> tag and the <a> tag, 
the </a> tag and the <b> tag, etc.

child::node() will match all nodes that are children, while child::* will only 
match the "principle node type" of the child axis - element nodes in this 
case.  That's why the change someone suggested to you resolves your problem.

Another option might be to use xsl:strip-space to specify the elements from 
which to strip text nodes that contain only white space.  That would allow 
child::node() to continue to match text nodes that contain other than white 
space characters.  From your sample, it doesn't look like xsl:strip-space is 
what you want, but I thought I'd mention it in case your sample isn't 
representative of all instances.

Reply via email to