Closed laurentromary closed 5 years ago
@laurentromary Could you try this:
Duplicate the scenario in Oxygen.
Go to the Libraries section.
Delete Saxon EE, and replace it with Saxon HE instead.
Does that work? We've found problems with scenarios that use EE before.
I do not have a saxon HE installed with Oxygen (I have saxon, saxon9-sql, saxon9ee, ), should I fetch it from somewhere?
Le 30 nov. 2018 à 17:14, Martin Holmes notifications@github.com a écrit :
@laurentromary https://github.com/laurentromary Could you try this:
Duplicate the scenario in Oxygen.
Go to the Libraries section.
Delete Saxon EE, and replace it with Saxon HE instead.
Does that work? We've found problems with scenarios that use EE before.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TEIC/Stylesheets/issues/345#issuecomment-443254338, or mute the thread https://github.com/notifications/unsubscribe-auth/AE_Q70DsfWwyo0otbhSjPD8McgwPr6woks5u0VlVgaJpZM4Y7890.
Could you try simply deleting the saxonee? I think if you do that, HE will be used instead.
Have you tried using the teitodtd command? And could you make the ODD source available for testing?
Are there instructions somewhere so that I make a test? Here's my ODD (you'll guess the application domain). The disruption may also come from Oxygen. Let us inquire. SpringerBook.xml.zip
Note that it works on Oxgarage.
Definitely a problem in your oXygen installation. I tried it with my installation of oxyGen 20.0 and it works fine
Executing: "/home/lou/Oxygen XML Editor 20/jre/bin/java" -Dfile.encoding=UTF-8 -Xmx256m -classpath "/home/lou/Oxygen XML Editor 20/tools/ant/lib/ant-launcher.jar" "-Dant.home=/home/lou/Oxygen XML Editor 20/tools/ant" org.apache.tools.ant.launch.Launcher -lib "/home/lou/Oxygen XML Editor 20/classes" -lib "/home/lou/Oxygen XML Editor 20/lib/oxygen.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/oxygenAuthor.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/oxygenDeveloper.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/oxygenEclipse.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/oxygenAuthorEclipse.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/oxygenDeveloperEclipse.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/resolver.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/xercesImpl.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/saxon9ee.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/saxon.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/xml-apis-ext.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/log4j.jar" -lib "/home/lou/Oxygen XML Editor 20/lib/oxygen-basic-utilities.jar" -f "/home/lou/.com.oxygenxml/extensions/v20.0/frameworks/http_teijenkins.hcmc.uvic.ca_job_oxygen_tei_bleeding_lastSuccessfulBuild_artifact_oxygen_teiupdateSite.oxygen/tei/xml/tei/stylesheet/dtd/build-to.xml" "-DinputFile=/home/lou/Downloads/SpringerBook.xml" "-DoutputFile=/home/lou/Downloads/out/SpringerBook.dtd" "-Dprofile=default" "-Dlang=en" "-Doxygenlib=/home/lou/Oxygen XML Editor 20/lib" "-DdefaultSource=file:/home/lou/.com.oxygenxml/extensions/v20.0/frameworks/httpteijenkins.hcmc.uvic.ca_job_oxygen_tei_bleeding_lastSuccessfulBuild_artifact_oxygen_tei_updateSite.oxygen/tei/xml/tei/odd/p5subset.xml" "-Dwebhelp.trial.license=no"
Buildfile: /home/lou/.com.oxygenxml/extensions/v20.0/frameworks/http___teijenkins.hcmc.uvic.ca_job_oxygen_tei_bleeding_lastSuccessfulBuild_artifact_oxygen_tei_updateSite.oxygen/tei/xml/tei/stylesheet/dtd/build-to.xml
go: [echo] Do ODD expand processing (schema ${selectedSchema}) [xslt] Processing /home/lou/Downloads/SpringerBook.xml to /home/lou/Downloads/SpringerBook.xml.processedodd [xslt] Loading stylesheet /home/lou/.com.oxygenxml/extensions/v20.0/frameworks/http_teijenkins.hcmc.uvic.ca_job_oxygen_tei_bleeding_lastSuccessfulBuild_artifact_oxygen_teiupdateSite.oxygen/tei/xml/tei/stylesheet/odds/odd2odd.xsl [echo] XSLT generate dtd files [xslt] Processing /home/lou/Downloads/SpringerBook.xml.processedodd to /home/lou/Downloads/out/SpringerBook.dtd [xslt] Loading stylesheet /home/lou/.com.oxygenxml/extensions/v20.0/frameworks/httpteijenkins.hcmc.uvic.ca_job_oxygen_tei_bleeding_lastSuccessfulBuild_artifact_oxygen_tei_updateSite.oxygen/tei/xml/tei/stylesheet/profiles/default/dtd/to.xsl
oddcleanup: [delete] Deleting: /home/lou/Downloads/SpringerBook.xml.processedodd
dist:
BUILD SUCCESSFUL Total time: 16 seconds
The process finished with exit code: 0
Works for me on Oxygen 20.1 build 2018101517 with the bleeding edge plugin.
It also works if I force the use of saxon9he rather than EE. I remembered that you don't do that by removing saxon9ee itself; you remove the oxygen.jar file from the libs, and that forces the fallback to HE. Can you try that?
Thanks you all. I will carry tests step by step, resorting to OxGarage to generate the thing in emergency. I now observe that macro.anyXML is now transformed into EMPTY in DTD instead of ANY, which is a real issue. Have you also observed this? Shall open another ticket?
macro.anyXML is rather differently expanded in recent versions of ODD and I am not at all surprised that it doesn't do what it used to do. Probably a quick practical fix would be to compile your ODD against an older version of the Guidelines, using the @source attribute.
Just tested both with OxGarage and locally with Oxygen 21.1. and both produced a valid DTD without any further ado.
So closing here, but feel free to reopen if the error resurfaces.
System ID: /Users/romary/Documents/Workbench/IFIPSpecifications/Specification/out/SpringerBook.rng Scenario: TEI ODD to DTD Build file: /Users/romary/Library/Preferences/com.oxygenxml/extensions/v20.1/frameworks/http_www.tei_c.org_release_oxygenupdateSite.oxygen/tei/xml/tei/stylesheet/dtd/build-to.xml Document type: TEI ODD Engine name: ANT Severity: fatal Description: Transformation failed. /Users/romary/Library/Preferences/com.oxygenxml/extensions/v20.1/frameworks/httpwww.tei_c.org_release_oxygen_updateSite.oxygen/tei/xml/tei/stylesheet/common/teianttasks.xml:386: java.lang.NoClassDefFoundError: ro/sync/basic/util/Crypto