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=9089>. 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=9089 truouble resolving "//" xpath expression [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2002-05-15 13:33 ------- See attachments for an executable test. What seems to be happening here is that <xsl:value-of select="whatever//text()"/> is returning the content of the _first_ text node found, which in this input is generally the whitespace following the element's start tag. Checking the XSLT spec, it says that for value-of "The required select attribute is an expression; this expression is evaluated and the resulting object is converted to a string as if by a call to the string function." Looking in turn at the string function, it says "A node-set is converted to a string by returning the string-value of the node in the node-set that is first in document order." So returning the content of only the first text node found _IS_ correct behavior. If you want all the content, you'll need to do a bit more work.
