[Saxon-JS 2] Checking whether document is available in documentPool

Martynas Jusevičius <martynas-tyFqBaoSXPC1Z/[email protected]> Fri, 6 Nov 2020 00:49:23 +0100
Newsgroups gmane.text.xml.saxon.help
Message-ID <CAE35VmwszOoS8hBK4W6T8Bkae49kK91eDJa4W0Bwpu0gm1+Mpg@mail.gmail.com>
Hi,

I'd like to check whether a document is cached in the documentPool
before dereferencing its UI. Is that possible?

It would be like doc-available() but without doing the actual HTTP
request if the document is not cached. Maybe a parameter could be
introduced to only check the documentPool, or a new function?


Martynas