docx-validate
    Preparing search index...

    Function makeSelect

    • Build a namespace-aware xpath selector pre-bound to the OOXML prefixes in XPATH_NS. Use the returned function exactly like the xpath.select default export — it just spares every caller from re-declaring the namespace map.

      Example: const $$ = makeSelect(); const paragraphs = $$("//w:p", doc) as Element[];

      Parameters

      • extraNamespaces: Record<string, string> = {}

      Returns XPathSelect