[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qexo-general] module namespace question
From: |
Per Bothner |
Subject: |
Re: [Qexo-general] module namespace question |
Date: |
Thu, 15 Feb 2007 19:59:25 -0800 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070130) |
Kevin S. Clarke wrote:
When compiling an XQuery (that works okay with Saxon) I'm getting a
"function not in namespace of library module [XQST0048]" exception
message.
I have a hunch the attached patch might help.
If it doesn't, please submit a complete test-case I can try.
--
--Per Bothner
address@hidden http://per.bothner.com/
Index: gnu/xquery/lang/XQParser.java
===================================================================
--- gnu/xquery/lang/XQParser.java (revision 5897)
+++ gnu/xquery/lang/XQParser.java (working copy)
@@ -4083,7 +4083,7 @@
}
if (curToken != STRING_TOKEN)
return declError("missing namespace uri");
- uri = new String(tokenBuffer, 0, tokenBufferLength);
+ uri = new String(tokenBuffer, 0, tokenBufferLength).intern();
if (forFunctions)
{
functionNamespacePath = new Namespace[1];