Is there a way to use a Microsoft Windows command line tool to read an XSLT file and several XML files, and produce a single output file?
(I can write such a tool myself if necessary, but I'd rather not reinvent the wheel.)
Is there a way to use a Microsoft Windows command line tool to read an XSLT file and several XML files, and produce a single output file?
(I can write such a tool myself if necessary, but I'd rather not reinvent the wheel.)
Yes, there is.
You can access additional XML documents using the document()
function, or you can supply them as stylesheet parameters (xsl:param
).
Many XSLT processors have a Windows command line interface, for example Saxon, xsltproc, and msxsl.
Sure. I prefer to use the xsltproc command line tool, which is cross-platform, lightweight and fast, but there are more command line tools available. For processing multiple XML files, use the document
function.