Re: [xml] xmlschemastypes.c:1755 - supporting "Name"

On Fri, Jan 02, 2004 at 11:08:09AM -0800, Reid Spencer wrote:
There is a "TODO" block on this line in support of the XML Schema
lexical space "Name". I'm trying to figure out what remains to be done
here. I would like to finish this implementation off but can't figure
out from the code what remains to be checked. The code looks like:

        case XML_SCHEMAS_NAME:
            ret = xmlValidateName(value, 1);
            if ((ret == 0) && (val != NULL)) {
            goto done;

A zero result from xmlValidateName means the "value" validated as a
"Name". I'm not sure what needs to be done if "(val != NULL)". 

  if val != NULL, then this mean that the value should be stored,
i.e. the value from the value space should be stored in val. The problem
is that 1/ it's dependant on whitespace normalization 2/ one would
need to check that deallocation is done if needed 3/ this is not used
yet because the current code does not store PSVI values in the tree
(there is now placeholders, but I didn't had the need yet for this).
  In a nutshell, this part is unlikely to be used by any existing
code, but this would have to be done once PSVI stuff gets stored.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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