I've tried installing http://redaktion.selfhtml.org/temp/sdml.xxe_addon
normally using a ``fresh XXE'' v3.6.0 on Windows 2000:
* Installation of the add-on worked fine.
* After restarting XXE as instructed, I tried creating a new document
based on your Chapter template. I got this error:
------------------------
Cannot open File
"XXX.xml
parse error in file
"ZZZ/sdml_catalog.xml", line 2, column 85: syntax error
------------------------
This error is caused by the initial contents of sdml_catalog.xml:
---
<public publicId="-//SELFHTML//DTD SDML 1.0 Full//DE" uri="" />
<public publicId="-//SELFHTML//DTD SDML 1.0 Simple//DE" uri="" />
---
It is important to keep in mind that a blank uri (uri="") means:
*myself*. That is, when opening the Chapter template, XXE considers that
the DTD to be used here is sdml_catalog.xml!!!
Needless to say that, as a DTD, sdml_catalog.xml has many parse errors.
* Now, I've edited sdml_catalog.xml using XXE itself (and your CSS style
sheet) and replaced uri="" by uri="YYY.dtd" and then saved sdml_catalog.xml.
* I then *immediately* tried creating a new document based on your
Chapter template. I got the same error:
------------------------
Cannot open File
"XXX.xml
parse error in file
"ZZZ/sdml_catalog.xml", line 2, column 85: syntax error
------------------------
Strange? No. XXE has not reloaded sdml_catalog.xml after I've modified
it. (Users are not expected to modify XML catalogs.)
* After restarting XXE (XXE loads the updated sdml_catalog.xml),
everything works fine.
What I've described explains *all* the symptoms you have described
(except the add-on install problem which I didn't reproduce).
---> No XXE bugs here.
---> I strongly urge you to bundle a copy of the DTDs with your add-on
and to make sdml_catalog.xml initially point to these DTDs.
If the user has its own copies (perhaps more up to date), *then* she/he
may edit sdml_catalog.xml and make it point to its own copies.
Note that in such case, the user needs to clear the DTD cache using
Options|Preferences|Advanced|Clear Cache (see
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.dialog.PreferencesEditorDialog.html#d0e8559).
Thomas J. Sebestyen wrote:
> Hello,
>
> There is a very corious problem to me.
> After installig an addon, the user have to edit the catalog.xml
> file. Thre is a command button for the user to save the file: the
> underlying command save the file, open an other file and close
> the catalog.xml.
>
> Thats works fine in 3.5.2, it also works fine if someone install 3.6.0
> over the old 3.5.2.
>
> But it not works if someone have a fresh installation from 3.6.0.
> (either uninstall 3.5.2 or just on a system without prior xxe
> installation)
>
> The catalog.xml is saved but the other file won't be open. I tested
> it on different system from XP to Win2000 and the error is always the same:
> For example:
> ------------------------
> Cannot open File
> "C:\...\ApplicationData\XMLmind\XMLEditor\addon\sdml\xmlmind_help\shortconfig.xml
>
> parse error in file
> "file:/C:/.../Application%20Data/XMLmind/XMLEditor/addon/sdml/sdml_catalog.xml",
> line 2, column 85: syntax error
> ------------------------
> (line 2 is:
> <?xml-stylesheet type="text/css" href="css/catalog.css" title="Catalog
> Stylesheet" ?>
> and 85 ist just before the ">".)
>
> The same error occurs if one try to open any of the xml files belongs to
> the project.
>
> Now: just restart xxe, the error is "gone" files can be open etc.
> Also if someone change the catalog.xml again (or just click on the
> command button), now it works as desired.
>
> All this only with a cleen installation of 3.6.0.
>
> ==========
> I have also a second problem, but since this happend only on my system
> yet, I'm not sure (on a system without prior xxe the addon was installed).
> If I try to install the addon I got the error:
> ------------------------
> Installing add-on "Konfiguration f?r den SDML-Addon f?r den XMLmind-Editor"
> v1.0.0 ("C:\DOKUME~1\Thomas\LOKALE~1\Temp\xxedownload18908\sdmladdon.zip") in
> "C:\Dokumente und Einstellungen\Thomas\Application
> Data\XMLmind\XMLEditor\addon\sdml"...
> Cannot install add-on "Konfiguration f?r den SDML-Addon f?r den
> XMLmind-Editor" v1.0.0
> ("C:\DOKUME~1\Thomas\LOKALE~1\Temp\xxedownload18908\sdmladdon.zip") in
> "C:\Dokumente und Einstellungen\Thomas\Application
> Data\XMLmind\XMLEditor\addon\sdml":
> cannot rename 'C:\Dokumente und Einstellungen\Thomas\Application
> Data\XMLmind\XMLEditor\addon\sdml\sdml' to 'C:\Dokumente und
> Einstellungen\Thomas\Application
> Data\XMLmind\XMLEditor\addon\sdml\__UNZIP__f2xt4u45'
> -------------------------
>
> If I unzip the addon into the addon directory and launch xxe, the prior
> decribed problem arise, so that this two problems are not depending on
> each other.
>
>
> If you will give it a try:
> http://redaktion.selfhtml.org/temp/sdml.xxe_addon
> (http://redaktion.selfhtml.org/temp/sdmladdon.zip)
>