You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SEF file is there, but apparently, it is out of date. When I recompile, the exercise runs fine.
(the web server reports this unenlightening error:
OSError: [WinError 193] %1 is not a valid Win32 application
but in the stack trace I see this:
recompile subprocess.run(["./gradlew", "-Pxsl=%s" % relpath, "eej"]))
Running node server:
(As I initially didn't see a way around the windows problem, I switched to node)
Starting the node server:
Error:
Cannot find module 'express'
Installed that.
The I could start the Node server.
For compilation of the stylesheets, tried to run:
.\gradlew -Pxsl=exercises/ex03/ex03.xsl node_xslt3
error
What went wrong:
Task '.xsl' not found in root project 'SaxonJS-Tutorial-2021'. Some candidates are: 'xslt'.
Running the equivalent node command:
node node_modules/xslt3/xslt3.js -xsl:exercises/ex03/ex03.xsl -export:exercises/ex03/ex03.sef.json -nogo -ns:##html5
also gave an error:
Error: Cannot find module 'D:\even\SaxonJS-Tutorial-2021-main\SaxonJS-Tutorial-2021-main\node_modules\xslt3\xslt3.js'
(weird, because it is there)
Then I installed xslt3 using
npm install xslt3
The gradle command now returned:
Error: Cannot find module 'D:\even\SaxonJS-Tutorial-2021-main\SaxonJS-Tutorial-2021-main\node\node_modules\xslt3\xslt3.js'
(note the extra 'node' in the path when compared with the previous error)
But now I could run the compilation without gradle:
node node_modules/xslt3/xslt3.js -xsl:exercises/ex03/ex03.xsl -export:exercises/ex03/ex03.sef.json -nogo -ns:##html5
(at least, in Windows cmd, not in PowerShell, which requires quotation marks like this: -ns:"##html5")
Other remarks
Firefox consistently reports an error on reading the SEF's
Some glitches encountered November 2024
Thanks for providing this tutorial! I learned a lot, but also encountered some hiccups.
Running on Windows 11.
Trying the Python server:
Running:
.\gradlew pythonServerStart
Reports:
Execution failed for task ':checkPython'.
On Windows, I don't think there usually is a python3.exe
I copied python.exe and called it python3.exe
Now the server runs
Creating a symlink also works.
On exercise 2, error message in console:
The SEF file is there, but apparently, it is out of date. When I recompile, the exercise runs fine.
(the web server reports this unenlightening error:
Running node server:
(As I initially didn't see a way around the windows problem, I switched to node)
Starting the node server:
Error:
For compilation of the stylesheets, tried to run:
.\gradlew -Pxsl=exercises/ex03/ex03.xsl node_xslt3
error
Running the equivalent node command:
node node_modules/xslt3/xslt3.js -xsl:exercises/ex03/ex03.xsl -export:exercises/ex03/ex03.sef.json -nogo -ns:##html5
also gave an error:
Then I installed xslt3 using
npm install xslt3
The gradle command now returned:
But now I could run the compilation without gradle:
node node_modules/xslt3/xslt3.js -xsl:exercises/ex03/ex03.xsl -export:exercises/ex03/ex03.sef.json -nogo -ns:##html5
(at least, in Windows cmd, not in PowerShell, which requires quotation marks like this: -ns:"##html5")
Other remarks
Firefox consistently reports an error on reading the SEF's
There is a surplus bracket on slide 37: ixsl:get(ixsl:event(),'target.value'))
The text was updated successfully, but these errors were encountered: