"Juergen Hermann" <[EMAIL PROTECTED]> writes:
> Hi!
>
> What's the story behind
>
> http://apache.org/xml/features/validation/reuse-validator
>
> and
>
> http://apache.org/xml/features/validation/reuse-grammar
>
> The second is added in 1.5.2, and the first is not documented anymore
> (in the setFeature method). Is "reuse-validator" deprecated and fully
> replaced by "reuse-grammar"? Or does the first still apply to DTD
> checking, and the second only to schemas?
Irritatingly, the documentation for SAX2XMLReaderImpl is *different*
than that for SAX2XMLReader.
Looking at the source for SAX2XMLReaderImpl.cpp I found:
else if (XMLString::compareIString(name,
SAX2XMLReaderImpl::SAX_XERCES_REUSEVALIDATOR) == 0)
{
fReuseGrammar = value;
}
else if (XMLString::compareIString(name,
SAX2XMLReaderImpl::SAX_XERCES_REUSEGRAMMAR) == 0)
{
fReuseGrammar = value;
}
So currently they both do the same thing. I'll let Tinny or one of the
schema team explain what the future of these features is to be, and
then I'll commit a documenation fix.
Tinny?
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]