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 March 6th, 2008, 06:08 AM
Registered User
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default javax.xml.transform.TransformerConfigurationExcept

hi iam getting the below error when iam using <xsl:import href="http://localhost/framework_common/common_templates.xsl"/> in one of my xsl.
"javax.xml.transform.TransformerConfigurationExcep tion: Had IO Exception with stylesheet file: http://localhost/framework_common/common_templates.xsl
    at org.apache.xalan.processor.TransformerFactoryImpl. newTemplates(TransformerFactoryImpl.java:939)"

any help on this will be greatful to me.
 
Old March 6th, 2008, 07:33 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Would you expect it to be able to retrieve a file at:

http://localhost/framework_common/common_templates.xsl

If that's not the location of the stylesheet module you want to import, then the base URI (systemID) of the importing module is probably incorrect. Fix it by calling setSystemId() on the Source object used to supply the stylesheet.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old March 6th, 2008, 11:32 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Can you retrieve

http://localhost/framework_common/common_templates.xsl

if you type that URL into the browser (on the same machine)?

Perhaps there's no file there, or perhaps you haven't got a web server configured to serve it.

It seems an odd kind of URL to be using, why would you want to get the stylesheet module from the web server if it's on your local machine?

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old March 7th, 2008, 05:27 AM
Registered User
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi i dont have access to that machine to log on, so i checked by giving the ipaddress of that machine like below.

http://193.131.216.169/framework_com..._templates.xsl by giving the above it is accessible.

so is it fine, or shall i check in by loging in to that machine and check by giving "http://localhost/framework_common/common_templates.xsl"

please let me know on this.

 
Old March 7th, 2008, 06:54 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Very difficult to help you with this one - it's not really an XSLT problem. If the web server won't deliver the file to the XSLT processor then there's something wrong with your configuration and it's not possible from the information you've supplied to tell what.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old March 7th, 2008, 07:21 AM
Registered User
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HI please see the below error,

[3/7/08 9:36:53:192 GMT] 0000009f SystemErr R file:///store/a30scstargets/acc53/act/legacy_products/p10/310/310_01_journalorderform1.xsl; Line 3; Column 79; ERROR,2008/03/07 09:36:53
ERROR ID: errorId:
component:
description:
severity:3
explanation:
action:

[3/7/08 9:36:53:228 GMT] 0000009f SystemErr R WebContainer : 14:com.elsevier.cws.util.Logger:ERROR:::TRANSFORME R_ERROR:UTPHL001E: Unable to apply stylesheet:
:javax.xml.transform.TransformerConfigurationExcep tion: Had IO Exception with stylesheet file: http://localhost/framework_common/common_templates.xsl
    at org.apache.xalan.processor.TransformerFactoryImpl. newTemplates(TransformerFactoryImpl.java:939)

so please let me know if u need further information on this to help me out?
 
Old March 7th, 2008, 07:29 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I don't need further information - you do!

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old March 7th, 2008, 07:43 AM
Registered User
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Michael, iam sorry, my intension is do you need any information from my side to help out the above problem.

so that i will provide the same.



 
Old March 7th, 2008, 08:03 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

It's very difficult to solve configuration problems remotely: and as I said, it's not really an XSLT problem. I don't think it's likely that I will be able to solve this for you.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old March 7th, 2008, 08:14 AM
Registered User
 
Join Date: Mar 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can you suggest some help, where all can be the configuration goes wrong for this type of errors. so that i will check.

since the same is working in Dev & Integration environments. and it is not working in Production environment.

thanks in advance.






Similar Threads
Thread Thread Starter Forum Replies Last Post
<?javax.xml.transform.disable-output-escaping ?> robbert XSLT 5 January 5th, 2011 07:28 PM
Transform xml to xml changing one tag. surfer97301 XSLT 2 April 21st, 2010 05:14 PM
Exception in thread "main" javax.xml.transform.Tra XSLTUser XSLT 1 December 29th, 2007 04:59 AM
XSLT read through XML to transform another XML dendenx2 XSLT 8 July 7th, 2005 08:18 PM
Transform XML to XML using XSLT Mr.D XSLT 2 September 7th, 2004 02:13 PM





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