CuginiTech.Xsl-Viewer 1.0.5

dotnet tool install --global CuginiTech.Xsl-Viewer --version 1.0.5
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local CuginiTech.Xsl-Viewer --version 1.0.5
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CuginiTech.Xsl-Viewer&version=1.0.5
nuke :add-package CuginiTech.Xsl-Viewer --version 1.0.5

Xsl-Viewer

Overview

A simple dotnet commandline tool to render xml files using a xsl/xslt file.

Typical usage is

Xsl-Viewer source.xml layout.xsl

Progress will be similar to this

Using layout.xsl
Using source.xml
Html is in source.xml.html

Once run the rendered file will open. Typically this is via the default browser if creating html files.

Options

--help OR \?

Will output help for all available features.

--no-launch

Still render to file but don't open document.

--force-html

With some xsl/xml combinations self closing tags or actual xml in the document can casue problems. This renders in a more flexible fashion.

--version

Show the version installed

--path=<folder>
--path="folder with spaces\sub folder"

Can change the destination folder. Use quotes if the folder contains spaces or special characters.
Xsl-Viewer will attempt to create the destination if it is missing.

--rename=${name}.newext

Allows created files to be renamed. Pass in a string of the new name. The value can be a constant but when working with multple xml files it is best to have the string contain ${name}. This value is the original name of the xml file with the xml extension removed.

Supports import

Xsl files can include other xsl files using the import statement. The must be present as local files rather than urls.

<xsl:import href="includes/library.xsl"/>

Updating

To get the latest version of the tool run

dotnet tool update CuginiTech.Xsl-Viewer

If it has been installed locally make sure to run the command in the same folder

Further reading

See wikipedia for xsl details

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.2 is compatible.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.5 292 12/10/2022
1.0.4 272 12/8/2022
1.0.3 307 12/5/2022
1.0.2 349 12/4/2022
1.0.1 312 12/4/2022
1.0.0 286 12/3/2022