-
Notifications
You must be signed in to change notification settings - Fork 41
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
Different treatment of empty primary p:xslt results in 1.1.25-99 #288
Comments
That certainly wasn’t an intentional change and I agree an error should be raised. Will see if I can fix it today. |
Right. I've made progress using the |
Fixed, I believe. 1.1.26-99 is available here and will be available in Maven shortly. |
Thanks, it now behaves as it did before. |
Thank you for 1.1.25-99. Together with Saxon 9.9.1.2, it certainly solves issue #281. Apart from that, almost everything else seems to work as expected. I employed it in a configuration with complex and diverse pipelines and many test documents. There were differences in attribute order and in indentation (end tags no longer in a line of their own, which is a plus). This is certainly due to changes in Saxon 9.9, they are Ok.
I stumbled over one kind of new error in our pipelines, and I boiled it down to this example:
Untitled4.xpl
Untitled3.xsl
This stylesheet doesn’t produce a primary output.
With 1.1.21 and Saxon 9.8, I get the following message:
With 1.1.25 and Saxon 9.9, I get this:
The error happens when
p:store
tries to store the empty document node that 1.1.25-99 returned on the primaryp:xslt
port.I think in XProc 1.0,
p:xslt
needs to produce exactly one well-formed XML document on theresult
port. So I think that Calabash should probably raise an error if my stylesheet fails to produce a primary result document. (I remember that @xml-project mentioned that his processor will report this as an error.)The text was updated successfully, but these errors were encountered: