11
Nov
by Chris
Displaying the output of Get-DirAsXml in an explorer with Powershell. Although Powershell is a command line interface it can use forms to display output and get input. For an explorer the first thing we need is a treeview so we can use the System.Windows.Forms.TreeView control. Add it to a Sys...
[More]
5
Nov
by Chris
One would think this should be easy. Just put Powershell into the Language of an msxsl:script element. But it doesn't work :-D Pity. I rooted around and the language attribute can be any of the CodeDomProviders available on the system. PS> [System.CodeDom.Compiler.CodeDomProvider]::GetAl...
[More]
4
Nov
by Chris
Another way to extend Xslt is to pass an extension object into the transform. function T-AddChecksum{ param ($inxml) begin{ . pslib:\xml\invoke-transform.ps1 [xml]$xslt = ...
[More]
3
Nov
by Chris
Here are ways to write translets that will do more than the just an Xslt transform. You might want to add an MD5 or SHA256 checksum to all the files within a tree. Xslt doesn't do this natively so you need to extend it. Here is one way it uses C# as the Xslt scripting language function T-AddC...
[More]