You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Jan Hackel <jh...@rz.uni-potsdam.de> on 2005/07/25 08:48:04 UTC

Re: XInclude reference property fixup in Xerces 2.7

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 fixup could 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?

Regards
Jan Hackel

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


Re: XInclude reference property fixup in Xerces 2.7

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Jan,

Jan Hackel <jh...@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