I am not sure if I understand your documentation correctly, but I thought this should work:
saxon word-empty.xml docx.xsl filename=ROM18860_Macri.docx
With Saxon-HE 9.9.1.6J from Saxonica, I get the following message:
Static error in {file:read-binary($filename)} in expression in xsl:sequence/@select on line 16 column 62 of docx.xsl:
XPST0017: Cannot find a 1-argument function named Q{http://expath.org/ns/file}read-binary()
Errors were reported during stylesheet compilation
I am not sure if I understand your documentation correctly, but I thought this should work:
saxon word-empty.xml docx.xsl filename=ROM18860_Macri.docx
With Saxon-HE 9.9.1.6J from Saxonica, I get the following message:
Static error in {file:read-binary($filename)} in expression in xsl:sequence/@select on line 16 column 62 of docx.xsl:
XPST0017: Cannot find a 1-argument function named Q{http://expath.org/ns/file}read-binary()
Errors were reported during stylesheet compilation