Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

RecentComments

None

 
 
     
 
12
Nov

Powershell Xml Folder Tree Xaml Explorer

by Chris
A different way to display the output from Get-DirAsXml is with Xaml. I will probably occasionally refer back to the previous posts on how to do it using Windows.Forms. So here is step one, displaying the output as a simple TreeView function Xaml-DisplayDir{    param([xml]$xml)&n... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell | Wpf | Xaml | Xml | Xslt

Tags: , , , , , , ,

8
Nov

Powershell Translets TTAF to SMI M3

by Chris
Here is a  translet that will transform Timed Text (TT) Authoring Format 1.0  to Microsoft Synchronized Accessible Media Interchange (SAMI). This one allows you to specify a TimeShift value in milliseconds to the transform. It also does better subtitle colouring. function T-TtafToSm... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell | Translet | Xml | Xslt

Tags: , , , , , ,

7
Nov

Powershell Translets TTAF to SMI M1

by Chris
Here is a  translet that will transform Timed Text (TT) Authoring Format 1.0  to Microsoft Synchronized Accessible Media Interchange (SAMI). This one is quite simple. All text is the same colour. Not much different from SRT format really. function T-TtafToSmi{    param... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell | Translet | Xml | Xslt

Tags: , , , , , ,

6
Nov

Powershell Translets TTAF to Srt

by Chris
Here is a translet that will transform Timed Text (TT) Authoring Format 1.0  to SRT. function T-TtafToSrt{    param ($inxml)    BEGIN {        . pslib:\xml\invoke-transform.ps1     &nb... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell | Translet | Xml | Xslt

Tags: , , , , ,

5
Nov

Powershell Translets Powershell as Xslt Scripting Language

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]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: C# | Powershell | Translet | Xml | Xslt

Tags: , , , , , ,

4
Nov

Powershell Translets Find Duplicates

by Chris
Here is a simple translet for finding duplicates. function T-FindDuplicates{    param ($inxml)    begin{        . PSlib:\xml\invoke-transform.ps1        [xml]$xslt = @" <... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell | Translet | Xml | Xslt

Tags: , , , , , ,

4
Nov

Powershell Translets C# Object Checksum

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]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: C# | Powershell | Translet | Xml | Xslt

Tags: , , , , , ,

4
Nov

Powershell Translets Add Ratio

by Chris
This translet will add a Ratio attribute to a daxml file. It is very useful to find out where all of the space is taken up in folders and if your downstream application is SVG or WPF then Ratio can be used in a lot of places. function T-AddRatio{    param ($inxml) &nb... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell | Translet | Xml | Xslt

Tags: , , , ,

3
Nov

Powershell Translets C# Script Checksum

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]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: C# | Powershell | Translet | Xml | Xslt

Tags: , , , , , ,

3
Nov

Powershell Translets Simple

by Chris
These are small Xslt transforms that modify some Xml in the powershell pipeline. Here is a simple one. It adds a Length attribute to daxml folder nodes. function T-DirLength{    param ($inxml)    begin{        . PSlib:\... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell | Translet | Xml | Xslt

Tags: , , , ,