Skip to main content
Module

x/docxml/mod.ts>default#match

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
method default.prototype.match
import { default } from "https://deno.land/x/docxml@2.4.2/mod.ts";

Add an XML translation rule, applied to an element that matches the given XPath test.

If an element matches multiple rules, the rule with the most specific XPath test wins.

Parameters

xPathTest: string
transformer: Parameters<this.renderer.add>[1]