Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open file from URL #51

Open
GiorgioAresu opened this issue Aug 18, 2016 · 2 comments
Open

Cannot open file from URL #51

GiorgioAresu opened this issue Aug 18, 2016 · 2 comments

Comments

@GiorgioAresu
Copy link

GiorgioAresu commented Aug 18, 2016

Hi,
I'm using a stylesheet which loads an external file like this:

<xsl:variable name="secondaryFileXml" select="document($languageXPath)"/>

where languageXPath contains a relative path and all works, everyone is happy.

The issue is I'm developing an API which transforms the XSL server-side, and I'd like that path to be an URL instead of a filesystem path (or at least a path relative to the stylesheet itself), but if I change $languageXPath with something else, let's say http://localhost:3000/public/[...]/it.xml I get:

I/O warning : failed to load external entity "http://localhost:3000/public/[...]/it.xml"

It goes without saying that opening that url in a browser works just fine, as well as letting a browser perform the transformation.

I took a look at the underlying libxmljs and it seems that the HTTP part is optional, so enabling it would probably work.

Is there anything we could do?

Thanks

@GiorgioAresu
Copy link
Author

Can anyone help please?

@albanm
Copy link
Owner

albanm commented Nov 15, 2016

I have very little time to dedicate to this project. If you wish to work on the problem and submit a pull request I would gladly review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants