> it's certainly solvable, but it's not currently on anybody's list of
> things to do AFAIK.

Yes, it's solvable, and yes, it's on my todo list.

The solution would be straightforward: storing line/column numbers in DOM
nodes. But the real change is pretty big: for every single place where we
report a schema error, we have to provide a proper DOM node for location
information. This is not trivial:

1. There are a large number of such places;
2. Sometimes it's not easy to find the "proper" DOM node.

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                
                              
                    John Utz                                                    
                              
                    <[EMAIL PROTECTED]       To:     [EMAIL PROTECTED]          
                       
                    sh.com>              cc:                                    
                              
                                         Subject:     Re: dom.ASBuilder 
[Error]: -1:-1                        
                    02/14/2002                                                  
                              
                    06:01 PM                                                    
                              
                    Please respond                                              
                              
                    to                                                          
                              
                    xerces-j-user                                               
                              
                                                                                
                              
                                                                                
                              



there is an answer. it's just not a good one.

i have raised this issue previously and either sandy or elena provided the
answer:

the problem is that the schema is read into a DOM and the line number and
column number information isnt conserved.

so, the validator looks at the now DOM-ified schema and finds errors. it
reports the errors in the correct way, but the mechanism to resolve the
error back to a line/column number is unimplemented, because the
information was never saved.

it's certainly solvable, but it's not currently on anybody's list of
things to do AFAIK.

On Thu, 14 Feb 2002, Hua Yang wrote:

> hi:
>
> Somebody has asked the same question before but seems no answer.
>
> The ASBubilder example with xerces2 doesn't return correct value for line
> and column number. Always -1:-1.
>
> It seems that getColumnNumber() and getLineNumber() function can't find
the
> right value to return.
>
> Any help will be appreciated.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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





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

Reply via email to