"George T. Joseph" wrote:
>   int[] n = new int[128];
>   for(int i=0;i<n.length;i++)n[i]=i*2;
>   int rc = DeferredDocumentImpl.binarySearch(n, 0, 128, 
> Integer.parseInt(argv[0]));
>   System.out.println("Index: "+rc);

The start and end points passed into the binarySearch method
are INCLUSIVE. Therefore, you are causing the error by
specifying an end point OUTSIDE of the legal index values.

Change the end point from 128 to 127 and the binary search
function will work correctly.

As for Karen's problem, I want to run the sample file
through the latest code but we've updated the XML Schema
support to the 17 Dec 1999 Working Draft and her schema
is written to the November draft. 

I was hoping someone would be willing to convert her file
to the latest draft so that I can test it. I would do it
but I'm bogged down trying to get a release together.

Better yet, is it possible to write an XSLT stylesheet to
transform the old XML Schema syntax to the new one? This
could be an extremely useful for people migrating their
schema documents. Just run it through Xalan and BAM! all
done. :)

-- 
Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]

Reply via email to