import { default } from "https://deno.land/x/docxml@2.4.2/mod.ts";
The top-level configuration API for creating a new transformation of your XML input to a valid
OOXML .docx
file. Its properties and methods provide convenient access to registering transformation
rules (Api.match) or more fine-grained control of the contents of the DOCX.
Uses Docx to describe the product DOCX file.
Properties
The XML renderer instance containing translation rules, going from your XML to this library's OOXML components.
Methods
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.
Set the XML-to-DOCX transformation in motion for the given XML string, and whichever added context you want to pass into the translation rule callbacks.