-
Notifications
You must be signed in to change notification settings - Fork 31
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
Upgrading to XSpec v1.3.0 (or Oxygen v22.0) #778
Comments
@AlexJitianu, I thought you might want to be aware of this (if you're not already), in case Syncro Soft receives questions or tech support cases related to the XSpec upgrade. |
Thanks for the heads-up! Up until now, the only report we had was related to the addon that contributes the XSpec Helper View. I will release a new version that is compatible with Oxygen version 22. |
@AlexJitianu thanks for your response to me on the OxygenXML support channel, I sent a note about this issue yesterday. I've got XSL that handles DITA to markdown, backed by XSpec tests. Until the latest upgrades (Saxon 9.9, XSpec 1.3, OxygenXML 22), these tests worked as expected. Now, they fail because of a Saxon SXD0004 error -- in short, the result doc is not XML. That is, running XSpec tests, targeting XSL transforms to text, with the latest of everything produces an error that emanates from Saxon. I created bare-bones test documents (attached). When I ran the included I then installed XSpec locally, installed Saxon 9.8.0.14 locally, and from the CLI ran xspec against my sample file. The tests compile correctly, which is good, but fail for some whitespace issue that I haven't been able to solve -- but that is a different matter. The important point is that the test compiles, so this tells me that using Saxon 9.8.0.14 works w/ XSpec for text output (markdown in this case), whereas the 9.9 version doesn't. This may or may not be useful information for you. I was going to file a new issue, but I found this one, and it seems relevant, hence my comment here. Meanwhile, while I'm here I'd like to say that I have great appreciation for both SyncroSoft and XSpec, I use these tools regularly and am impressed with the high level of work that you're all doing. |
Hi, @apaluya |
The reason why the sample test fails on Saxon 9.8 is that an extra LF is expected.
If the last LF in
But the XSpec result HTML reports this simple difference as if it were a complicated difference. That needs to be fixed in XSpec. |
Fixed in #824 |
#873 is one of the instances of the global context item issue. |
When upgrading to XSpec 1.3.0, some users might see that some of their pre-existing XSpec tests either have failing assertions or fail to build. The XSpec 1.3.0 Release Notes page contains some relevant information in its Summary section (see 2nd and 6th bullets). This issue provides some examples of how incompatibilities can manifest themselves and options for making the tests pass again.
Oxygen v22.0 has XSpec 1.5.0, whereas Oxygen v21.1 has XSpec 1.2.0. As a result, XSpec users may notice the XSpec 1.3.0 incompatibilities when they adopt Oxygen v22.0.
Sample XSLT
Sample XSpec
The text was updated successfully, but these errors were encountered: