Unused features (for that time) should be revised for this time.
#I found bugs with your comments. Thanks!
I have to go a seminar today, so I will take a look at
the bugs on this weekend.
Makoto
On Sun, Nov 23, 2008 at 3:54 AM, Makoto YUI <yui...@gmail.com> wrote:
>
> Keep you waiting?
>
>> First problem is that the servlet freezes very often and I have to kill
>> the container (tested on Win XP/Java 1.5 and Mac OS X/Java 1.6 with
>> Tomcat 6). I see that you use some kind of locking in your servlet,
>> maybe it misbehaves...?
>
> A lock was not properly released on failure conditions.
> This bug is fixed in the SVN trunk.
>
> There is no problem with my test, running hevy http-load using
> JMeter,
> on Sun JDK 1.6/Tomcat 6/Windows.
Seems like it's ok with me too.
>
>> If I write a primitive xquery page like this:
>>
>> declare namespace req = "xbird://xqsp";
>> declare variable $req:x external;
>>
>> $req:x
>>
>> and call /page.xqp?x=3 I get: xbird.xquery.XQueryException: err:XQ0049
>> Duplicate global variable: {xbird://xqsp}x
>> What am I doing wrong?
>
> You are not wrong. I was wrong :-(
> This bug is fixed. Please try the same thing with the latest war file.
Working!
>
>> How do I import and use them? JavaFunction class is marked as
>> deprecated and does not work for me (UnsupportedOperationException)
>
> JavaFunction class is deprecated and not activated.
> You have to implement new class that extends BuiltInFunction, e.g.,
> http://code.google.com/p/xbird/source/browse/trunk/xbird-open/main/src/java/xbird/xquery/func/ext/Hostname.java
>
> While little knowledge to XBird internal is required, lots of examples
> exist in
> http://code.google.com/p/xbird/source/browse/trunk/xbird-open/main/src/java/xbird/xquery/func/
So I've experimented with this a little, but I still don't know how to
import the func. I placed it in the xbird.xquery.func.ext package and
checked whether XQSP will be able to find it there automatically, but
no luck. Do I have to explicitly define it in my xquery scripts?
I've noticed PredefinedFunction class, but that seems to be completely
write-protected from outside.
>
>> When I use declare variable $doc := doc("WEB-INF/web.xml");
>> I get: java.lang.IllegalArgumentException: URI is not absolute. Seems
>> like the path cannot be relative at all....
>
> Fixed.
> Please try it again.
Works too!
>
> Thanks,
> Makoto
I thank you :)
Daniel
btw: I've done some advertising for you today ;) see the discussion at
http://broadcast.oreilly.com/2008/11/test-driving-marklogic-40-xml.html
Keep up the good work,
Dan
--
http://www.danielkvasnicka.net -- webdesign & corporate design,
programování internetových a intranetových aplikací | webdesign &
corporate design, web applications development