Skip to main content

Simple XSL transformation test tool

I know, I know. There's a lot of tools out there to help with editing XML and XSL files and a whole lot of other mess.

While creating an XML-based web site system in my current role, I wanted to be able to just test my XSL before plugging it in to my code in case it started causing any difficulties. Basically, all I need was a transformation tool that works like in Altova XMLSpy.

I couldn't find many, and when I did, in some cases it wasn't presented in an obvious way where the general interface complicated things. Almost giving up, I decided to hack together a simple tool myself. Since the required system is in ASP.NET and I haven't done application development in a long time, I gave C# a shot.

For me the tool worked like a charm and does "exactly what it says on the tin". My colleagues even took a liking to it. So I would like to share it with you.

I've simply called it XML Transformer and you can get hold of it from here.

Features

There's not much to it but here goes:
  • Load XML and XSL files
  • Create new XML and XSL files - basic necessities are already provided
  • Be able to edit and save XML and XSL files
  • Tab-based interface
  • Quick preview of XML and XSL transformation in separate tab - can right click to view source
Limitations
  • There's no colour coding for the editor. Never really bothered as this was not important.
  • Does not handle more than one XML or XSL file.
  • Cannot save the preview to a file on the hard drive.
    Well... the tool actually saves the transformation to a html file for the preview, where the viewer picks up the file and displays it. The file is saved as output.html in the same directory as the executable. This file is deleted when the application exits.
  • Any changes made to an XML or XSL file are automatically saved back when transforming, so please make backups
Feel free to make use of this tool and leave feedback. I'm not really doing anything with this tool as it was quickly made for a specific use. But, depending on feedback I might pick it up and turn it into a pet project, and maybe release it open source.

Comments

Popular posts from this blog

Will we ever get Dreamweaver on Linux?

I have been a keen user of Ubuntu for some time now, and have to admit that this distribution has improved by leaps and bounds. However, what I do honestly miss on windows is... Dreamweaver. Some will swear by it, some will swear at the mention of its name. But for me, it is a very powerful tool when used correctly. Such a very popular and powerful web design and development tool is available on Windows and Mac OS, but not Linux. If you would just consider, Adobe has already supported the platform with their Adobe Reader and Adobe Air. Why is Dreamweaver not available? It just seems that there's not such a huge call for it so they just don't see the need to put in an effort for another platform. One chap at Adobe suggested to use Dreameaver under wine , but it doesn't work so great. There is an alternative to wine which, according to a user on the forums, works flawlessly - Crossover . However, the former option is not free, so some may be dissuaded where they woul...

Image links in IE8

While mocking up a design page for a colleague's website I came across a new browser behaviour in IE8. This was the first time I used IE8 as my main development browser, due to the fact that the PC was re-installed and high-priority updates were applied. Surprisingly Microsoft branded IE8 as a priority update. Anyway, back to what I was talking about, here's a sample: <a href="index.htm"><img src="logo2.jpg" alt="Logo" title="Logo" /></a> As you can tell, this is using an image for a link, where it behaves well in Chrome, Firefox and in the previous versions of IE (7 and older). But in IE8, this is not the case as the DOM does not treat the image as innerText, only as a child node. As a result, everytime I hover the mouse over this image, an extra gap would come from nowhere shifting any relatively positioned elements. To fix this I explicitly added a space (&nbsp;), so the line would look like: <a href="inde...

Morange

I have Nokia N70 on the T-Mobile network, and it's really impressive. Labelled as a Smart Phone, it is a bit like a cross between a PDA and a normal mobile phone. Boy does it live to expectations. You can check your emails (POP/IMAP), read Word documents, Spreadsheets, view To-Do lists and so much more. Now I sound like a sales man. The most handy aspect is the ability of downloading "mini-applications". What I really want to talk about is a mini-application that let's you treat your phone as if it is an iPhone. Yes, you heard me. An iPhone. Why bother with a mobile phone that costs you an arm and a leg for a phone with a pretty interface. Well, I would, but I would not like to risk my limbs in the process. This application is called Morange ( http://www.morange.com ) and is feature rich. You can receive an "push" POP/IMAP emails. It even works with GMail. All you have to do is enable POP3 in the settings (Follow this link to find out how http://ma...