xsl-list
[Top] [All Lists]

RE: [xsl] Problem with transforming using Xalan: "Had IO Exception with stylesheet file"

2007-10-12 14:13:17
Nevermind, I got it. Thanks though.

HC.

-----Original Message-----
From: Chaudhary, Harsh 
Sent: Friday, October 12, 2007 4:01 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Problem with transforming using Xalan: "Had IO
Exception with stylesheet file"


I did a quick google search for information on how to set the system id
but did not come up with anything. I would appreciate it if you could
tell me.

Thanks,
HC.

-----Original Message-----
From: George Cristian Bina [mailto:george(_at_)oxygenxml(_dot_)com] 
Sent: Friday, October 12, 2007 3:54 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Problem with transforming using Xalan: "Had IO
Exception with stylesheet file"


It seems you are not setting the system id on the stylesheet and thus it

is not possible to resolve correctly the relative location 
math.max.template.xsl.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina - http://aboutxml.blogspot.com/
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Chaudhary, Harsh wrote:
I realize this is not a Xalan forum but maybe someone here knows
something.

I have a stylesheet: transform.xsl which is importing an exslt
template
"math.max.template.xsl" like so:

<xsl:import href="math.max.template.xsl" />

Both transform.xsl and math.max.template.xsl are in the same folder.
Now
everything works fine in my XSLT IDE (Oxygen) using Xalan, but when I
hook up my Java code to run this transformation, I get the exception:

Had IO Exception with stylesheet file: Could not find file
math.max.template.xsl

Anyone have any views on that?

Another thing, if I use the full path to the file like so: 

<xsl:import

href="C:\harsh\ws\wsad\JavaSource\com\amfam\rate\xml\math.max.template.x
sl" />

everything is fine.

Harsh.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--