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=14575>. 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=14575 Cannot get back to document context during extension function use ------- Additional Comments From [EMAIL PROTECTED] 2002-11-14 22:03 ------- I don't believe this is a bug. Since the extension function returns a manufactured node-set, the current document is required to change. Your best bet is to save the current document in a variable, and use that to get back to the original source tree: <xsl:variable name="originalDoc" select="/"/> <xsl:for-each select="xalan:tokenize(string)"> <!-- this will print a blank --> <xsl:value-of select="$originalDoc/SomeElement/Value" /> </xsl:for-each> This is a common technique when using extension functions, or other functions which change the document context (such as the document() function).