Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $xsl = ($CentralLogLoc+"FormatToHtml.xsl")
- $output = ($CentralLogLoc+"ServerLog.html")
- param ($CentralLog, $xsl, $output)
- if (-not $CentralLog -or -not $xsl -or -not $output)
- {
- Write-Host "& .\xslt.ps1 [-xml] xml-input [-xsl] xsl-input [-output] transform-output"
- exit;
- }
- trap [Exception]
- {
- Write-Host $_.Exception;
- }
- $xslt = New-Object System.Xml.Xsl.XslCompiledTransform;
- $xslt.Load($xsl);
- $xslt.Transform($CentralLog, $output);
- Write-Host "generated" $output;
Advertisement
Add Comment
Please, Sign In to add comment