Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar
 
 
     
 
6
Feb

Powershell Translet XQuery T-DAXmlToWpl

by Chris
There is no reason why a Translet shouldn't use XQuery as opposed to Xslt. So here is one that will transform a DAXml into a Windows Play List (WPL) using XQuery. It is quite simple function T-DAXmlToWpl{     param ($inxml)     begin{   &n... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell | Translet | Xml | XQuery

Tags: , , ,

26
Jan

Powershell DAXml Xaml XQuery Explorer.

by Chris
I recently spotted Standalone XQuery Implementation in .NET on Codeplex and decided to integrate it with DAXml explorer. I'm going to start with a previous post and add a few things. A ToolBar to switch to XQuery search and run the XQuery <ToolBarTray Background="White" Grid.Row="0">     <... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell | Wpf | Xaml | Xml | XQuery

Tags: , , , , ,

22
Jan

XMP Getting Raw XMP RDF Using Adobe XMP Toolkit

by Chris
I wanted to get the raw XMP RDF data from some JPEG files. I looked at Microsoft Windows Imaging Component and although it will get individual metadata properties I couldn't find a way to get the whole XMP RDF packet. I saw some posts about extracting it using a substring aproach by getting all the ... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: C++ | Powershell | Xml

Tags: , , , , , ,

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: , , , , , , ,

11
Nov

Powershell Adding an icon to a form

by Chris
If you are using a GUI it is nice to have a form icon. I didn't want to have an ico or bmp file in the same folder as the ps1 file because it might get lost. So this bit of code can be put into your ps1 source file to give you a form icon $iconstring = (@"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACB VGf... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Categories: Powershell

Tags: , ,

11
Nov

Powershell Xml Folder Tree Explorer

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

Categories: C# | Powershell | Xml

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: , , , , , ,