1

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.)

Jonathan Sachs
  • 613
  • 8
  • 19

2 Answers2

1

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.

Michael Kay
  • 156,231
  • 11
  • 92
  • 164
0

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.

Doc Brown
  • 19,739
  • 7
  • 52
  • 88