[ https://issues.apache.org/jira/browse/XALANJ-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566681#action_12566681 ]
Henry Zongaro commented on XALANJ-2431: --------------------------------------- That namespace is only the standard function namespace in XSLT 2.0 and XPath 2.0. The Xalan-J processors are XSLT 1.0 processors, and according to section 14.2 of XSLT 1.0: If a FunctionName in a FunctionCall expression is not an NCName (i.e. if it contains a colon), then it is treated as a call to an extension function. So the Xalan-J processors have no choice but to treat a reference like fn:position() as a reference to an extension function. > Xalan can not regconigze the default namespace if users explicitly define in > XSLT documents > ------------------------------------------------------------------------------------------- > > Key: XALANJ-2431 > URL: https://issues.apache.org/jira/browse/XALANJ-2431 > Project: XalanJ2 > Issue Type: Bug > Components: Xalan > Affects Versions: 2.7.1 > Reporter: lqv > Fix For: 2.7.1 > > > <?xml version="1.0" encoding="UTF-8"?> > <xsl:stylesheet version="2.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:fn="http://www.w3.org/2005/xpath-functions"> > <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> > </xsl:stylesheet> > When user define prefix xmlns:fn="http://www.w3.org/2005/xpath-functions", > Xalan does not understand it is default namespace. > Therefore, it considers this namespace is extension function ==> load class > which has name: "xpath-functions" which does not exist ==> > throw exception "ClassNotFound". > Expected result: should check if the namespace is default namespace before > considers it is extension namespace. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]