views:

795

answers:

8

Hi guys,

I'm a LAMP web developer in Perl and at my current place we use some black magic in using Perl to retrieve the data, throw them into a XML and then pass the XML to an XSL file. And this is all handled magically by the almighty AxKit. Thus you can probably imagine that my XSL is full of XSLT lines, i.e. if test,@value etc.

I was wondering if there's any tool, IDE, etc which I can use to open the XSL file and check the HTML preview without having to modify anything in my current XSL?

I'm open for suggestions as long as it gets the job done. Thanks.

+1  A: 

I am currently using Visual Studio, open your xml file within visual studio, from XML menu click show xslt output.

Bashar Kokash
@Bashar any specific version? all i can find is vs2003 here. thanks.
melaos
No, this is in Visual Studio 2005 and above
Bashar Kokash
@melaos: VS2008 Express is free: http://www.microsoft.com/express/.
John Saunders
+2  A: 

I found Stylus Studio to be an invaluable tool for all my XML needs. I never ran it rough Wine though.

Martijn Laarman
wow, seems like a little overkill but i'm going to check it out. thanks :)
melaos
+1  A: 

I use cooktop which is free.

Bhushan
me too (though it is buggy and unsupported)
annakata
A: 

Try Microsoft XML Notepad

Matajon
+5  A: 

XSLT IDEs (Interactive Development Environments):

  • XSelerator (the one I've been using for 6-7 years). Free, has a Debugger for MSXML, has intellisense for both XSLT 1.0 and XSLT 2.0. In addition has some dynamic intellisense. The debugger has breakpoints, data breakpoints,visualizes temporary trees, variables, test conditions, current output, ..., etc.
  • VS2008 -- a good XML Editor + XSLT Debugger. Good static intellisence. Match patterns are statically checked. Breakpoints, data breakpoints, visualization of variables and the current output.
  • oXygen
  • XML-SPY (Altova)
  • Stylus Studio

XPath tools:

  • The XPath Visualizer -- A popular tool for learning XPath by playing with XPath expressions. Free and open source. Allows any XPath expression to be evaluated against a given XML document and displayes the results hi-lighted in the xml document (if they are node(s)) or in a separate box (if the results are atomic values). Allows xsl:variable-s to be defined and then used in XPath expressions. Allows xsl:key-s to be defined and then referenced by key() functions within XPath expressions.
Dimitre Novatchev
wow, sounds awesome and definitely can't beat the price. thanks :)
melaos
@Dimitre Btw i can't seem to find anything from your XPath Visualizer link. Can you check? thanks.
melaos
The topxml.com site was almost fatally broken and has been in this state for long. XPV for IE: http://stackoverflow.com/questions/511942/best-xpath-expression-evaluator-eclipse/512352#512352XPV for Mozilla: http://www.topxml.com/code/cod-422_9827_xpath-visualizer-for-the-mozilla-browser.aspx
Dimitre Novatchev
Does XSelerator works on Vista? It think work here :(
Daniel Silveira
@Daniel-Silveira Yes, it works OK, must be started as administrator.
Dimitre Novatchev
Xselerator does not have an installer. When I run it, I get the error: "CoCreate failure on IAltovaAPplication. Error: Class not registered." It looks like the application still works, but I'm not very confident in it.
Alek Davis
Tried to download XPath Visualizer and got a scary safe browsing report from Google. Check it out: http://safebrowsing.clients.google.com/safebrowsing/diagnostic?site=http://www.topxml.com/code/cod-422_10119_xpath-visualizer-14.aspx
Alek Davis
@alek-davis The CoCreate" error is because XSelerator expects AltovaXML to be installed. From my experience this doesn't afect the work of the product.
Dimitre Novatchev
@alek-davis The topxml.com site may have its own problems, but the download of the XPathVisualizer was OK the last time I tried it. I don't know what exactly the Google's safebrowsing report finds as problematic.
Dimitre Novatchev
@Dimitre: Per Google: "Of the 867 pages we tested on the site over the past 90 days, 193 page(s) resulted in malicious software being downloaded and installed without user consent. Malicious software includes 1085 trojan(s), 104 scripting exploit(s), 8 worm(s). Successful infection resulted in an average of 8 new process(es) on the target machine. Malicious software is hosted on 18 domain(s), including ca9x.com/, kaishi2009.com/, datongpu.com/. 2 domain(s) appear to be functioning as intermediaries for distributing malware to visitors of this site, including ca9x.com/, 51of.net/."
Alek Davis
@alek-davis That's very sad... I will have to put all my tools and snippets to some other site then: if and when I have free time.Thank you for letting me know.
Dimitre Novatchev
A: 

A couple of alternatives that haven't been mentioned, yet:

  • XML Copy Editor - Okay, but requires an intermediate step to generate HTML and then open HTML in an external browser.
  • WMHelp XMLPad - Many minor bugs and annoyances, but otherwise very useful: can review and debug transformations within the IDE.

I wrote a post describing these and a couple of other tools, in case someone is interested: How to test XSL transformations.

Alek Davis
A: 

I'm using Visual Web Developer 2008 Express Edition...under my XML menu all I see is "Schemas..." when I have an XSL file open. Did I miss installing a component for the other options?

SLeepdepD
A: 

To add another one:

You can use XML ValidatorBuddy directly from the Windows File Explorer to run and test your XSL transformations also: http://www.xml-tools.com/ValidatorBuddy.htm

XML ValidatorBuddy is an inexpensive XML workflow tool.

xml-tools.com