-
Notifications
You must be signed in to change notification settings - Fork 40
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
Problems with catalog resolver since v1.5.4 (or xmlresolver 2.1.1->4+) #345
Comments
Ahh, the same old story of URLs and their lookups into the web...! Calabash 1.5.3 & xmlresolver 4.6.0 returns
So it turns out, that my first intention was correct, that my problems with the catalog resolver was introduced by the version 1.4.0 or by xmlresolver 4.2.0. I extended the module.xpl and added new CI steps for 1.4.0 and 1.3.2 to make it clear. The root cause seems to be that the static base uri is no more resolved if the imported module is inside a jar archive. But maybe the main issue is, that the unparsed text resolver ignores the catalog? |
What we have here is a nasty confluence of issues. Part of the problem is that a new resolver option was added Mask jar URIs. Because that option is But why mask them? Well, it turns out that So the idea behind masking the jar URIs is a compromise. You get back the original URI but the content from the local resource. Unfortunately, XML Calabash wasn't using the XML Resolver for unparsed text URIs. That meant you got back the wrong thing even though, in this case, the catalog would resolve things correctly. I think I've fixed this issue for Saxon 10, 11, and 12. |
Please reopen this issue if it isn't resolved in 1.5.7. |
Hi,
I'm observing different behavior using different combinations of Calabash/xmlresolver versions. Not sure which changes was made intentionally and which has to be fixed. So I'm just posting what I see.
I've created a Maven based GitHub project to reproduce the behavior on the CI.
The Module
I've packaged a jar containing three files:
/catalog.xml
(on top level that Calabash finds it)/xpl/module.xpl
/txt/unparsed-text.txt
The catalog contains something like this:
The module.xpl is a library, containing one
p:declared-step
which just do:The unparsed text contains just some character data.
The Main Project
Now I try to include the module via catalog URI into a main.xpl:
I call Calabash with the module jar file in the classpath and I get different output by different calabash or xmlresolver versions:
Calabash 1.5.3 with xmlresolver 4.6.0
See GitHub logs
Calabash 1.5.4 with xmlresolver 5.1.2
See GitHub logs
Calabash 1.5.3 with xmlresolver 2.1.1
See GitHub logs
Calabash 1.5.4 with xmlresolver 2.1.1
See GitHub logs
Summary:
The text was updated successfully, but these errors were encountered: