Re: [xml] "w3c xml schema: default attribute values in dict?"



On Fri, May 07, 2004 at 03:47:24PM +0200, Kasimier Buchcik wrote:
Hi,

This one goes to Daniel: if one would try to implement default attribute 
values for the XML Schema processor, should they be managed with the
string dictionary?

  Well the strings from the schemas itself should use the schemas own
dictionnary. If adding a new attribute to the DOM tree, since the 
attribute comes from a predefined set, yes I think the values should be
allocated from the document dictionnary (assuming it exists), both for
the attribute name and for the text node value children of the attribute
node. The risk of explosing the dictionnary size due to random text does
not exist in this case and this should be safe, yes. One probably just
need to make sure that the text node deallocation in that case will check
for the dictionnary string (both in normal DOM and in the reader).

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]