UNPKG

speech-rule-engine

Version:

A standalone speech rule engine for XML structures, based on the original engine from ChromeVox.

18 lines 672 B
import * as Xmldom from '@xmldom/xmldom'; import * as wgx from 'wicked-good-xpath'; export const xmldom = Xmldom; export const document = new xmldom.DOMImplementation().createDocument('', ''); const install = (wgx === null || wgx === void 0 ? void 0 : wgx.install) || window.wgxpath.install; const Xpath = (function () { const win = { document: {}, XPathResult: {} }; install(win); win.document.XPathResult = win.XPathResult; return win.document; })(); export const xpath = { currentDocument: document, evaluate: Xpath.evaluate, result: Xpath.XPathResult, createNSResolver: Xpath.createNSResolver }; //# sourceMappingURL=lib_external.js.map