Caching grammars

Robert Huffman <[email protected]>
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <CAKhQOUayHoieVCZ7kPfO0JaNm+Wp6Ke-Zrq4SWyzJHu2X55Z7A@mail.gmail.com>
I must parse documents that may use a large number of fairly large XSDs.
However, the large majority of documents will not use most of those XSDs.
Therefore, I would like to use a custom LSResourceResolver to resolve the
target namespaces to local resources during parsing rather than building a
Schema object that has all the grammars loaded up front.

Unfortunately, as nearly as I can tell, grammars loaded through the use of
a LSResourceResolver are never cached in the grammar pool. Is that correct?
Is there some nuance I'm missing?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.