web analytics
MSXSL.EXE: Microsoft Command Line XSL Transformation Utility Options
Posted: Thursday, January 21, 2016 3:26:53 PM

Rank:Advanced Member
Groups: Member
Joined: 12/14/2015
Posts: 177
Points: 870

The msxsl.exe command line utility enables you to perform command line Extensible Stylesheet Language (XSL) transformations using the Microsoft XSL processor, the Msxsl.exe utility invokes the Microsoft XML Parser 6.0 (msxml6.dll) to perform the transformation.

Because msxsl.exe is only a wrapper, Microsoft Core XML Services (MSXML) must be installed on the computer. You can download Microsoft Core XML Services (MSXML) 6.0 from the Microsoft Download Center.


The usage of MSXSL is as follows. Individual options may appear anywhere.

MSXSL source stylesheet [options] [param=value...] [xmlns:prefix=uri...]

    -?            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: '3.0', '4.0', '6.0'
    -             Dash used as source argument loads XML from stdin
    -             Dash used as stylesheet argument loads XSL from stdin


Although MSXML allows parameters of any XSLT type to be passed to the style sheet, MSXSL allows only strings. Parameters are specified using a list of name-value pairs following the source and style sheet arguments.

MSXSL –o out.xml books.xml format.xsl p1=Microsoft p2='XSL Transformations'

Any number of parameters may be specified, as long as white space separates a parameter value from the next parameter name. Parameter names must conform to the XML QName syntax, with an optional prefix separated from a local name by a colon character.

MSXSL books.xml format.xsl my-ns:param='XPath 1.0' xmlns:my-ns='urn:my'

If a prefix is specified, it must be defined in a namespace declaration elsewhere on the command line. The prefix cannot be "xmlns" because this identifies a namespace declaration.

Posted: Thursday, January 21, 2016 3:26:53 PM
Posted: Thursday, September 21, 2017 11:23:09 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 892
Points: 3738

The Microsoft Core XML Services (MSXML) 6.0 release provides standards-conformant implementations of:

  • XML 1.0 (DOM & SAX2 APIs)
  • XML Schema (XSD) 1.0
  • XPath 1.0
  • XSLT 1.0

MSXML6 is intended as an upgrade path for MSXML3 and MSXML4 users. MSXML6 is also the first version of MSXML to provide a 64-bit redistributable package.

Posted: Friday, September 29, 2017 9:39:37 PM

Groups: Member
Joined: 12/21/2015
Posts: 19
Points: 117

You can find which versions of the MSXML parser have been installed on your machine in the following registry GUID:


Locate the Msxml6.dll file in the following directory:

Right-click the Msxml6.dll file, and then click Properties.

Click the Version/Detail tab to see the version information.

Posted: Friday, September 29, 2017 10:09:18 PM

Groups: Member
Joined: 12/21/2015
Posts: 19
Points: 117

The easiest way to transform XML with MSXML is to use Internet Explorer to activate the transformation. When you include an xml-stylesheet processing instruction in the XML document and then open that XML document, Internet Explorer reads the xml-stylesheet processing instruction and automatically retrieves the stylesheet you've pointed to. Internet Explorer use MSXML to process the stylesheet and shows you the result in an HTML page.

In the following example, you ceate helloword.xml and helloworld.xsl in the c:\workspace\temp folder, and type c:\workspace\temp\helloworld.xml in the address box in the Internet Explorer:


<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" hre="helloworld.xsl"?>
<greeting>Hello World!</topic>


<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
  <xsl:output method="text"/>

  <xsl:template match="/">


Users browsing this topic

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

© 2017 Digcode.com. All rights reserved.