Javax.xml.transform.:Had IO Exception with stylesheet file

Here should go questions about transforming XML with XSLT and FOP.
xsluser
Posts: 2
Joined: Tue Mar 11, 2008 8:50 am

Javax.xml.transform.:Had IO Exception with stylesheet file

Post by xsluser »

hi when i try to click on order form of specific journal here say 30210 it gives the following error: here it is in unix system.
--------------------------------------------------------------
SystemID: file:///store/a30scstargets/acc53/act/legacy_products/p10/30210/30210_01_bookorderform1_1.xsl; Line#: 3; Column#: 79
javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: http://localhost/framework_common/common_templates.xsl
at org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:873)
------------------------------
in this 30210_01_bookorderform1_1.xsl; Line#: 3; Column#: 79 it will be as below:
--------------------------------
<xsl:import href="http://localhost/framework_common/common_templates.xsl"/>
-------------------------------------
i have checked for the xsl in that path & it exists there.

so please let me know what may cause this problem. all says that it is due to configuration problem. if it is please let me know where all can be the configuration problems comes for this type os errors.

thanks in advance.
jkmyoung
Posts: 89
Joined: Mon Mar 06, 2006 10:13 pm

Re: Javax.xml.transform.:Had IO Exception with stylesheet file

Post by jkmyoung »

Does it work if you do not use localhost, but instead point to a file on your computer, or using a URL without localhost?
xsluser
Posts: 2
Joined: Tue Mar 11, 2008 8:50 am

Re: Javax.xml.transform.:Had IO Exception with stylesheet file

Post by xsluser »

jkmyoung wrote:Does it work if you do not use localhost, but instead point to a file on your computer, or using a URL without localhost?
no it wont work if i remove localhost. and iam not getting what u r asking? please let me know know what information you need from myside in order to solve.
iam sure that there is no problem in xslt, may be some configuration problems iam not able to retrive the same.

so please suggest some tips where all cn be the configuration goes wrong for this type of errors.

thanks in advance.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Javax.xml.transform.:Had IO Exception with stylesheet file

Post by sorin_ristache »

xsluser wrote:
jkmyoung wrote:Does it work if you do not use localhost, but instead point to a file on your computer, or using a URL without localhost?
no it wont work if i remove localhost. and iam not getting what u r asking? please let me know know what information you need from myside in order to solve.
Do you get the same error if you replace http://localhost/framework_common/common_templates.xsl with a path to a local file, something like file:///store/a30scstargets/acc53/act/legacy_products/framework_common/common_templates.xsl? Just edit the file file:///store/a30scstargets/acc53/act/legacy_products/p10/30210/30210_01_bookorderform1_1.xsl in which the error is reported, do the replacement and repeat the transformation.


Regards,
Sorin
Post Reply