Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2006, 08:50 PM
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSLT Windows v's Unix issue

Hi
I having a problem processing XSLT on unix at the moment, it works fine on windows but when I try process the same file on Unix I keep getting the same error. I'm wondering does anyone know is there a difference between the two operating systems that maay cause this problem....if so have you any solutions
Most current operating systems have an XSLT processor installed. For example, Windows XP comes with the MSXML3 library, which includes an XSLT processor. Earlier versions may be upgraded and there are many alternatives, see the External Links section.
Seems like JMeter is generating some dodgy XML, but not sure why that wouldn't fail on Windows also
JMeter uses an XSLT file, jmeter-detail-report.xsl to transform the JMeter JTL output into a nicely formatted html table of results.
The version of the file which I run with ant-jmeter (as a task in build.xml) runs well on Windows but fails on Unix with the following exception:
     [xslt] Processing /export/home/sfuser/sola/JMeter/JMeterResults.jtl to /export/home/sfuser/sola/JMeter/JMeterResults_detail.html
     [xslt] Loading stylesheet /export/home/sfuser/sola/JMeter/jmeter-results-detail-report.xsl
     [xslt] : Error! Content is not allowed in prolog.
     [xslt] : Error! com.sun.org.apache.xml.internal.utils.WrappedRunti meException: Content is not allowed in prolog.
     [xslt] Failed to process /export/home/sfuser/sola/JMeter/JMeterResults.jtl

BUILD FAILED
/export/home/sfuser/sfv4-client/staging/sfv4client_jmeter.xml:132: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRunti meException: Content is not allowed in prolog.

I tried removing spaces, changed the xml prolog in the xsl file, etc but it still doesn’t work.

Could you suggest what I can do to fix the problem?

cheers
flannan


 
Old December 15th, 2006, 06:25 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

The message "Content is not allowed in prolog" generally means there is something extraneous in the file before the XML declaration. It might be a byte order mark - Windows tends to use these rather more freely than Unix tools. Try to see what the actual bytes at the start of the file are - I'm sure there's a tool in Unix to do that, but its name eludes me.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
migrate from unix to windows pmreddy01 Apache Tomcat 0 January 23rd, 2007 04:22 AM
Connection b/w Windows ASP and Unix Informix kapi.goel Other Programming Languages 0 February 10th, 2006 04:58 AM
XSLT unix timestamp conversion Weezel XSLT 2 January 28th, 2005 02:12 PM
Oracle migration from Windows to Unix vijayma Oracle 1 December 14th, 2004 11:48 AM
Crystal 9 V's 8.5 fruity Pro VB.NET 2002/2003 1 June 1st, 2004 06:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.