[ https://issues.apache.org/jira/browse/XALANJ-2431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566611#action_12566611 ]
Joe Kesselman commented on XALANJ-2431: --------------------------------------- I think you've misdescribed your problem. To define the default namespace, you must use xmlns= (no prefix), not xmlns:fn=. And the trivial stylesheet you've given us doesn't contain anything that that would load an extension function Please provide an example which actually provokes the problem. > 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]