Thanks, Neeraj
Neeraj Bajaj wrote:
Hi All,
This mail is about "infoset" [1] feature defined as part of DOM L3 core. As per DOM L3 core default value of this feature is 'true' and required. But in Xerces2 the 'infoset' feature is set to 'false' in DOMConfigurationImpl and DOMBuilderImpl. Its value is 'true' in DOMWriterImpl.
I would like to know the obstacles to set the value of this feature to 'true' at those 2 places. I think Xerces2 satisfies all the requirements to set this feature value to 'true'. Read more for explanation..
As per DOM L3 to support 'true' value of "infoset", it says, "Keep in the document the information defined in the XML Information Set [2] "
As per the Conformance section of XML Information Set [2]
<snip>
Conformance: Since the purpose of the Information Set is to provide a set of definitions, *conformance is a property of specifications that use those definitions, rather than of implementations*
</snip>
This point is of most relevance since conformance is a property of specifications (i.e. DOM L3 which referes to XML Information Set) for various definitions rather than of implmentations.
There is another point below linked to the implementation.
<snip>
Indicate the information items and properties that are needed to implement the specification. (This indirectly imposes conformance requirements on processors used to implement the specification.)
</snip>
As per my understanding this means that a specification ( DOM L3 in this case) should clearly define the information items and properties that are referenced from XML Information set and those should be implemented ( Xerces2 in this case)
I see that DOM L3 referes to Infoset definitions at couple of places like 1. isId() in Attr Object. 2. TypeInfo 3. Base URIs
At all the places it is implemented in Xerces2.
To support "infoset" feature. This feature requires the support of following features -- "namespace-declarations", "well-formed", "whitespace-in-element-content", "comments", "namespaces" for which the support has been provided in RI. A document might not be wellformed when created in the memory but as per infoset spec "There is no requirement for an XML doucment to be valid in order to have an information set"
Given that we meet all the requirements, I think, we should set the value to 'true' in our RI for DOMConfigurationImpl and DOMBuilderImpl.
Does anyone have any different views/concerns setting the value to 'true' in these 2 classes ? Please let me know
Any comments/suggestions are welcome as always..
Thanks
Neeraj Bajaj
[1]http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration [2]http://www.w3.org/TR/xml-infoset/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- -- Neeraj
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
