Page 1 of 1

IO Exception on import of include file when debugging

Posted: Mon Nov 01, 2004 7:51 pm
by ron
I get the following 2 errors when trying to debug with the enclosed 2 files:

1) SystemID: F:\XML\XSLT\INCLUDE\incJS.xsl
Description: E Had IO Exception with stylesheet file: incFormat.xsl

2) SystemID: F:\XML\XSLT\INCLUDE\incRelatedValidationData.xsl
Description: E Had IO Exception with stylesheet file: incFormat.xsl
:shock:
in both cases, the recalcitrant line is:

<xsl:import href="incFormat.xsl"/>

What do I do to get the debugger past these errors?
:?:

Posted: Mon Nov 01, 2004 9:11 pm
by george
Hi,

Both errors tell that the file F:\XML\XSLT\INCLUDE\incFormat.xsl that is referred from both your styelsheets cannot be accessed by the transformer. Please make sure that file exists and it is accessible to the application.

Best Regards,
George

Posted: Mon Nov 01, 2004 10:30 pm
by ron
Well, that's wierd, because incFormat.xsl is in the same folder F:\XML\XSLT\INCLUDE\ as the importing stylesheets. And I know Oxygen can see it, because if I dbl-clik the filename and use right-mouse menu to "Open file at cursor", it pops the file into an edit window. So, what's the deal? Why can't the debugger find it? :(

Would it be because the top-level XSL, ie. the one I'm debugging - Formview.xsl - is in the parent folder F:\XML\XSLT? Is it trying to look in that folder instead of the subfolder? If so, then that would be why it can't find it. But I would hope that it's smart enough to look for imports of included files in the same folder as the including files... :?

Posted: Wed Nov 03, 2004 10:46 am
by george
Hi Ron,

We tried to reproduce this exact behavior but oXygen works ok.
If you contact us on support@oxygenxml.com then we can send you the samples we tested with. Also you may consider sending us more details to allow us reproduce the same behavior.

Best Regards,
George

E Had IO Exception with stylesheet file: config.xsl

Posted: Thu Mar 03, 2005 4:58 pm
by rob.driessen
I experienced the same problem, can you tell me what the solution was for this problem ?

Solution to IO Exception with stylesheet file

Posted: Thu Mar 03, 2005 6:37 pm
by ron
The problem line in the actual code was this one:

<xsl:import href="include\incFormat.xsl"/>

Notice the backslash instead of the forward slash after "include". The oXygen support team noticed that and replied:

"The import/@href value is a uri-reference, thus you need to use / and not \. See http://www.w3.org/TR/xslt#import for more details."