Hi, Elliotte,

Elliotte Harold <[EMAIL PROTECTED]> wrote on 09/05/2004 11:16:42 AM:
> I've written some code which accesses Xalan purely through published 
> APIs, specifically javax.xml.transform.sax.SAXSource. However a likely 
> bug in my code is causing an ArrayIndexOutOfBoundsException deep inside 
> Xalan, specifically at
> 
> Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
  [Traceback removed.  HZ]
> I'm pretty sure it's my bug that's causing this exception, not yours. 
> However it would be helpful in tracking down my bug if I could 
> understand what your class is doing. Looking at the JavaDoc for 
> ExpandedNameTable.getType I see that this method, "Given an 
> expanded-name ID, return the local name ID." That sounds funny, 
> especially since there's a getLocalNameID method that has the exact same 

> description.
> 
> I suspect the JavaDoc is off here, and this is a copy-paste error from 
> the getLocalNameID method.
  [Remainder of message removed.  HZ]

     You're right that the JavaDoc is incorrect.  I believe that method is 
supposed to return the type of DTM node that is represented by that 
expanded type ID:  one of ATTRIBUTE_NODE, TEXT_NODE, ELEMENT_NODE, et al. 
See
 
http://xml.apache.org/xalan-j/apidocs/org/apache/xml/dtm/DTM.html#ATTRIBUTE_NODE

and related declarations.


Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to