|
namespace SimpleXSLT
{
public partial class SimpleXSLT
{
[System.STAThreadAttribute]
public static int
Main
(
string[] args
)
{
int result = 0 ;
try
{
System.Xml.Xsl.XslCompiledTransform xslt = new System.Xml.Xsl.XslCompiledTransform() ;
if ( args.Length == 2 )
{
xslt.Load ( args [ 1 ] ) ;
xslt.Transform
(
args [ 0 ]
,
null
,
System.Console.Out
) ;
}
else
{
System.Console.Write ( "Syntax: XSLT xmlfile xslfile" ) ;
}
}
catch ( System.Exception err )
{
System.Console.Write ( err.Message ) ;
}
return ( result ) ;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.