xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Glavassevich <mrgla...@ca.ibm.com>
Subject Re: XInclude reference property fixup in Xerces 2.7
Date Tue, 26 Jul 2005 22:31:37 GMT
Hi Jan,

Jan Hackel <jhackel@rz.uni-potsdam.de> wrote on 07/25/2005 02:48:04 AM:

> Hi Michael,
> 
>   thanks for the help. 
> 
> > For Xerces, references property fixup is a no-op. As far as I know,
> > neither SAX or DOM have native support for this property, though the 
DOM
> > specification [2] describes how it can be computed. I'm curious about 
how
> > you were expecting to access this information.
> 
> Actually I did not think much about how the reference property 
fixupcould be 
> done by the parser. Though I did not expect it to be a trivial task 
> implementing such a "higher order" feature, as it requires access to the 

> schema and manipulation of the whole document tree. I was quite blinded 
by my 
> hopes: Reference fixup would be a *great* help for unitizing large 
documents, 
> especially those produced in a collaborative but loosly coupled manner.
> 
> From your statement I conclude that reference property fixup is a 
inherently 
> hard to implement feature for any current XML-parser? Is there actually 
a 
> parser that  has the capability to do it?

I think the lack of API support for the [references] property is the 
issue. I don't know of any APIs which support it. What value is there in 
fixing up references if there's nowhere to report them? An application 
interested in the value of the [references] property is able to compute it 
from the information available in SAX (though only once the entire 
document has been read) and DOM. Since this would be computed on the 
result of XInclude, the values would be the same as the result of 
references property fixup.

> Regards
> Jan Hackel
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org
> 

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Mime
View raw message