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=12298>. 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=12298 Extension functions as parameters to other extension functions do not work properly Summary: Extension functions as parameters to other extension functions do not work properly Product: XalanJ2 Version: 2.4 Platform: All OS/Version: All Status: NEW Severity: Major Priority: Other Component: org.apache.xalan.extensions AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Calling a 3rd party extension function with a call to an extension function as a parameter (in this case a xalan:nodeset call) no longer works...below is the "before 2.4" code and "post 2.4" code that works. With 2.4, a "org.apache.xpath.XPathProcessorException: Extension function http://xml.apache.org/xalan : nodeset is unknown" exception is thrown. However, adding an interim variable as in the second example seems to work, though I'm sure there is some minor overhead associated with the extra step. ================ Used to work: <xsl:variable name="THING"> <TOP> <MIDDLE> <BOTTOM>Wahoo</BOTTOM> </MIDDLE> </TOP> </xsl:variable> <xsl:copy-of select="lhfunction:dosomething('ABC',xalan:nodeset($THING))"/> ================ Workaround: <xsl:variable name="THING"> <TOP> <MIDDLE> <BOTTOM>Wahoo</BOTTOM> </MIDDLE> </TOP> </xsl:variable> <xsl:variable name="THINGNodes" select="xalan:nodeset($THING)"/> <xsl:copy-of select="lhfunction:dosomething('ABC',$THINGNodes)"/> =======================
