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=6181>. 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=6181 Problems with value-of and extension function Summary: Problems with value-of and extension function Product: XalanJ2 Version: 2.3 Platform: PC URL: http://www.jayw.com/downloads/xalanbug.jar OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I am using a Java extension function which takes a NodeIterator and returns a string - something like <xsl:value-of select="ns:lowercase($foo)"/> where if foo was defined in a simple fashion like <xsl:variable name="foo" select="id(@idref)/@name"/> it will work, but <xsl:variable name="foo"><xsl:value-of select="id(@idref)/@name"/></xsl:variable> doesn't work. This used to work with an older version of Xalan (I'm not sure which), but now I can't get it to work with 2.2.0 or 2.3.D1. Sometimes I get back a null string from my extension function, sometimes I get a NPE in org.apache.xpath.objects.XRTreeFrag. I even have a line in one template like <xsl:value-of select="$foo"/>Ok = <xsl:value-of select="ns:lowercase($foo)"/>Not Ok that generates output FooOk = NullNotOk. I put an input file (XML) a stylesheet (XSL) and the extensions function into the jar shown above.
