I have a more fundamental question: whether a schema validator should fire
ignorableWhitespace() calls.
>From the xml-infoset spec, each character information item has a property
[element content whitespace]. In xerces, ignorableWhitespace() is fired for
whitespaces whose such property has the value "true".
But xml schema doesn't augment infoset information for character
information items, so it shouldn't change the value of such property to
"true" by calling ignorableWhitespace().
Did I miss something here?
Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
Glenn
Marcy/Cupertino To: [EMAIL PROTECTED]
/IBM@IBMUS cc:
Subject: Re: patch for
XMLSchemaValidator
12/07/2001
11:16 AM
Please respond
to xerces-j-dev
> ignorableWhitespace() is not called when the passed string is whitespace.
> Hence "dom/include-ignorable-whitespace" feature [false] doesn't work.
This may or may not be a problem, as I do not quite know the calling
context
of the modification, or under which circumstances fSawCharacters is set to
false, but you cannot just call ignorableWhitespace() when the passed
string is whitespace. You may only do so when the characters in question
are not character data and therefore occur within "element content" as the
XML spec (section 3.2.1) defines that term. Of course, if the document is
simply well-formed, yet invalid, the characters in element content may not
be whitespace at all, which is why you cannot just pass any characters that
are reported when in element content through the ignorableWhitespace call
without looking at them.
-Glenn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]