-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
The eXist database is insisting that my Javascript code is really an Xquery code #5338
Comments
@Speedlearner5 The issue you describe in the title of your issue:
... is actually an issue with eXide, the web-based XQuery development environment. Specifically, when eXide opes I've prepared a PR to fix the problem in eXide: eXist-db/eXide#695. Once that PR is merged, I'll prepare a new release of eXide, which you can download and install to fix the problem on your machine. Thanks for the report! |
@Speedlearner5 eXide v3.5.3 has been released (GitHub Release, Public Repo), with a fix to the issue you reported - eXide's detection of Javascript and Markdown files in the editor pane (#695). You can update eXide on your system by visiting eXist's Dashboard > Package Manager. After a moment, Package Manager will display any newer versions of your installed packages, and eXide should be among these. In the entry that should appear for eXide, click on the "⤓" (Download) icon to download and install the latest version of eXide. When you next open eXide, you may need to shift-click on your browser's reload button to ensure your browser loads the current copy of its resources. |
I updated the eXist software just like you recommended. Then I stopped the eXist server and started it again. The problem persists. It still won't recognize my javascript file as a javescript file and it won't recognize my xhtml file as a xhtml file. I decided to create my own xhtml file in Windows notepad and I saved it to my documents folder on my computer. Here is what I saved: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd">
<head>
<title>SVG Ellipse</title>
<link rel="stylesheet" type="text/css" href="http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/>
<script language="javascript" src="http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/>
</head>
<body onload="Setup()">
<svg id="Image_Box">
<ellipse id="My_Ellipse"/>
</svg>
</body>
</html> When I opened this document, I saw a blank screen. I'm not sure what happened. I know one thing for sure. Whenever I try to save the document type declaration code in eXist and reload eXiide, the document type definition disappears. No matter how many times I save this code, it still disappears. |
Re: eXide not recognizing your Javascript file as Javascript, please shift-click on your browser's reload button with the eXide window in front. Re: the DocType not appearing when you reload your HTML file in eXide, this is a complex issue that depends both on how you save the document to the database and how you serialize it - and over what interface. eXide can factor into the equation too, since it has a serialization drop-down and numerous serialization-related preferences. Controlling the storage and serialization of doctypes and entities is an area ripe for user confusion in eXist and has been discussed and worked on extensively. You might peruse the list of issues mentioning "doctype" and try to assess whether your issue belongs to one of those or whether it is somehow unknown and needs a new issue. Whether you add your findings to an existing issue or start a new one, please provide steps for reproducing your results and complete all questions. If you start a new issue, please answer all questions in the issue template - eXist version, etc. |
In case it is helpful to know - I added doctype support to eXist-db some time ago; since then there hasn't been a new release though |
This is my HTML code.
This is my css code
This is my Javascript code
This is my XML code
Right now I'm running Windows 11 with all updates installed. I'm also running Java 11 and the latest version of the eXist database.
At this moment my eXist database refuses to run as a Windows service because I turned it off and tried to turn it back on. I also cleared my cache but it had no positive effect. eXist continues to insist that my javascript code is some sort of xquery code. I don't know how to fix any of this. Can anyone assist me?
The text was updated successfully, but these errors were encountered: