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/21 15:57:33 UTC

XInclude property fixup in Xerces 2.7

The 2.7.0 release notes state that Xerces provides a *complete* implementation 
of the XML Inclusions recommendation. However, I am unable to get "property 
fixup" (Chapter 4.5.3 of the Rec.) working. Is it really supported by Xerces? 
If so, how do I get it working? It's a nifty feature I was waiting for ... 
well not ages, but at least since I first read of 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


Re: XInclude reference property fixup in Xerces 2.7

Posted by Jan Hackel <jh...@rz.uni-potsdam.de>.
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 property fixup in Xerces 2.7

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

Section 4.5.3 [1] describes fixup of the [references] property of an 
attribute information item. For IDREF/IDREFS the property contains an 
ordered list of element information items. Xerces provides no mechanism 
for accessing this property nor does it keep an internal representation. 
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.

Thanks.

[1] http://www.w3.org/TR/xinclude/#references-property
[2] 
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/infoset-mapping.html#Attr2Infoset

Jan Hackel <jh...@rz.uni-potsdam.de> wrote on 07/21/2005 09:57:33 AM:

> The 2.7.0 release notes state that Xerces provides a *complete* 
> implementation 
> of the XML Inclusions recommendation. However, I am unable to get 
"property 
> fixup" (Chapter 4.5.3 of the Rec.) working. Is it really supported by 
Xerces? 
> If so, how do I get it working? It's a nifty feature I was waiting for 
... 
> well not ages, but at least since I first read of 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
> 

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