Open StephanMa opened 3 years ago
This is weird, because uploading the ODD and regenerating the transforms via the API or the button in TP ODD list fails, but opening the file with the ODD editor and saving from there works correctly.
Same here. When klicking on "Regenerate" for an ODD I have the same error message (on every ODD). And I cannot save it from the editor either.
OS: Windows 11 eXistDB: 6.2 JDK: TEI Publisher: 8.0 TEI Publisher Lib: 4.0
eXist was installed via .xar file, no custom changes in conf.xml or similar. Many thanks!
I have the same issue. Cannot generate the .xqls for any ODD.
eXistDB: 6.2.0 TEI Publisher: 8.1.0 TEI Publisher Lib: 4.0.0
Is there any solution known?
I have the same issue here when training to learn how to use TEIPublisher. that's a shame.
When I create a new odd through web interface (here I called my new odd file "training") and when I apply it to a sample TEIPublisher project I get the error:
exerr:ERROR source for module /db/apps/tei-publisher/transform/training-web-main.xql not found in database
In fact, when I check in eXide, I only have training-[web|latex|print|epub|fo].invalid.xql
files
I tried renaming them but didn't help. It only triggered different errors.
System and software versions : OS: Windows 10 eXist DB version: 6.2 TEI Publisher version: 9.0.0 installation of exist-db through .jar file and TEIPublisher with exist-db package manager. eXist-db by itself works fine with several other eXist-db projects. the sample data of TEIPublisher works pretty smoothly as well but TEIPublisher encounters errors when creating new odd.
Any help will be greatly appreciated.
thanks a lot
Hello everyone, did anyone manage to solve this problem?
I'm having your same issues.
OS: Windows 10 eXist DB version: 6.2 TEI Publisher version: 9.0.0 Installed eXist-db through .jar file and then TEI Publisher from the package manager.
The workaround is to edit odd/configuration.xml
(or resources/odd/configuration.xml
in a generated app) and add the attribute skip-global="true"
to the modules element: <modules skip-global="true">
.
Thank you so much for your answer! Unfortunately, the recompilation still doesn't work after setting the attribute in the modules element the way you suggest. I'm guessing there are some troubles with the authentication, because I have troubles saving the changes on the files from eXide, too.
I'm having the same issue on both of my machines. Adding skip-global="true"
did not fix it. Did anyone find a solution?
OS: Windows 10 (desktop), Windows 11 (laptop) JDK: 21.0.3 (desktop), 21.0.4 (laptop) eXist DB: 6.2 TEI Publisher: 9.0.0 Similarly as above, installed eXist-db with .jar file and then TEI Publisher from the package manager.
The error just says "Compilation error on line :" without an indication which line.
If the desired effect of ODD is only a matter of adding some css to elements, the following cumbersome work-around did the trick:
Let's say I had elements <add rend="red-ink"></add>
that I want to render red as opposed to other additions in green. The app will convert it into <span class="tei-add red-ink"></span>
. Then adding .red-ink { color: red; }
into css did what I needed.
If automatic class is not present, or not enough, one can copy from X-web.invalid.xql into X-web.xql the ODD transformation:
case element(add) return
if (@rend='red-ink') then
html:inline($config, ., ("tei-add-red", css:map-rend-to-class(.)), .) => model:map($node, $trackIds)
else
html:inline($config, ., ("tei-add", css:map-rend-to-class(.)), .) => model:map($node, $trackIds)
and then add css for the new class as above.
Describe the bug I tried to migrate a TEI Publisher-App to eXist 5.3.0. This App does a certain amount of styling via ODD. When I try to recompile the ODD, I get an error that all files (print, epub, latex, web) couldn't be saved. When opening e.g. *-web.invalid.xql, I see that one function was added twice. Since eXist 5.3.0, duplication of functions raises an error.
Expected behavior I expect that recreating the functions from ODD Files works as it did on eXist 5.2.0.
To Reproduce
If the above isn't working, please tell us the exact steps you took when you encountered the problem:
Screenshots If applicable, add screenshots to help explain your problem.
Context (please always complete the following information): Mac M1 macOS Big Sur 11.4 JDK 15.0.2 eXist 5.3.0 TEI Publisher Lib 2.8.8 Open API Router 0.2.0
Additional context
./startup.sh
conf.xml
? none