19.1 Transforming XML Documents with nxslt2
XSLT is a powerful tool for transforming XML into many different formats, including HTML, PDF, and other XML formats. nxslt2 is a .NET 2.0–based command-line utility for transforming XML using XSL. It is simple to use but supports many advanced options, such as XInclude (for including XML documents), embedded stylesheets, multiple output documents, custom URL resolving, custom extension functions, EXSLT support, pretty-printing, and the ability to supply credentials for XML and XSLT access.
The utility itself is compiled into one standalone executable, which makes is very easy to deploy. All source code is provided, including source for EXSLT.NET, XInclude.NET, and XPointer.NET, all of which are built into nxslt2.
nxslt2 at a Glance | |
---|---|
Tool | nxslt2 |
Version covered | 2.0.1 |
Home page | |
Power Tools page | |
Summary | Feature-rich command-line utility for transforming XML documents using XSLT |
License type | BSD |
Online resources | Documentation, forum, discussion list |
Supported Frameworks | .NET 2.0 |
Related tools in this book | eXml, XInclude.NET, XPointer.NET, EXSLT.NET |
Getting Started
For performance, nxslt2 uses XslCompiledTransform
, which compiles the XSL transform before executing it. This is available only in .NET 2.0. For .NET 1.1, a separate tool, nxslt, is available; see http://www.xmllab.net/Products/nxslt/tabid/62/Default.aspx ...
Get Windows Developer Power Tools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.