When you finish your files today, you find a small program and its source code you have downloaded from Microsoft, called MSXSL (download here). This gadget is useful, but more useful should be its source code. I saw it, the most useful thing is three classes, one is Timer, one is ParseCommandline and its school msxmlcommandline.
The Timer class provides a high-precision timer.
ParseCommandline and its assignment MSXmlCommandline implement the command line resolution. With reference to these two classes, we can easily resolve the command line of your own programs, and it is very standard. It supports
Let's take a look at MSXSL.EXE command line parameter descriptions know:
Microsoft (R) XSLT Processor Version 4.0
USAGE: MSXSL SOURCE STYLESHEET [OPTIONS] [param = value ...] [xmlns: prefix = URI ...]
Options: -? Show this message -o filename Write output to named file -m startMode Start the transform in this mode -xw Strip non-significant whitespace from source and stylesheet -xe Do not resolve external definitions during parse phase -v Validate documents during parse phase -t Show load and transformation timings -pi Get stylesheet URL from xml-stylesheet PI in source document -u version Use a specific version of MSXML: '2.6', '3.0', '4.0' - Dash used as source argument loads Xml from stdin - Dash Used as stylesheet argument loading xsl from stdin
I want to have such a complicated command, everyone is enough! :) Powerful, but the code is not complicated