Welcome Guest | Login

Ruby-XSLT error with xsl:import

Hi there,

I use Ruby-XSLT to apply XSLT transformations on XML documents.

One of my XSLT contains a xsl:import declaration that Ruby-XSLT cannot process (<xsl:import href="my_import.xsl"/>). It works well when I use a different parser.

The only error I get is: "I/O Warning: Failed to load external entity".

Did someone run in the same type of issue?

Thanks in advance for your help,
Fabrice

2007-11-29 11:52 PM

Hi Fabrice, can you specify what outgoing port to use? Its possible that the xsl:import is using a different port than the other parsers are using which is blocked at the firewall level.  You may need to get support to open up an outgoing port for you.

2007-11-30 10:40 AM

Thanks for the answer William.

Do you mean specifying a port in the href attribute? That could be done indeed. Can you tell me how to test it (url format + port to use)?

Fabrice

2007-11-30 04:04 PM

Support will need to test it out with your application.  I don't know much about Ruby-XSLT but was wondering if there was a method to control which outgoing port was used.  Putting the port in the url will only identify which port on the external server to connect to.  

2007-12-01 09:18 PM

Ok, I will follow-up with support. Thanks for coming back to me and being opened on this issue!

I will update the thread when/if we find a solution.

Best,
Fabrice

2007-12-02 01:12 PM

Great news, I fixed this problem!

The Ruby-XSLT parser uses the RAIL_ROOT path to process xsl:import commands and not the path of the master XSLT doing the import (as other parsers do).

Fabrice

2007-12-04 02:17 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!