Page 1 of 1

16.1.0 - Parser Errors in abbreviatiatedDomain.mod

Posted: Thu Oct 09, 2014 6:30 pm
by lostiniceland
Hello everyone

After I just upgraded to the latest OxygenXml-Version 16.1.0, in order to get rid of the warning concerning Luna-compatibility, I get errors in all documents where I use the abbreviated-form-tag.

Withing the Author-Editor, Xerxes complains:

Code: Select all

Element type "abbreviated-form" must not be declared more than once.
When following the error to its location which is com.oxygenxml.editor_16.1.0.v2014100319/frameworks/dita/DITA-OT/dtd/technicalContent/dtd/abbreviateDomain.mod, then the attlist for abbreviated-form is there twice as well as some other error-markers:

Code: Select all

The entity "univ-atts" was referenced, but not declared.

Code: Select all

The entity "global-atts" was referenced, but not declared.

Looks like a little bug sneaked into the release. When downgrading back to 16.0, everything works as expected.

Re: 16.1.0 - Parser Errors in abbreviatiatedDomain.mod

Posted: Fri Oct 10, 2014 8:36 am
by Radu
Hi,

I installed a fresh Oxygen 16.1 XML Editor plugin but I cannot reproduce the problem on my side.
Did you un-install the Oxygen 16.0 plugin?
Do you use a DITA DTD specialization? If so, did you integrate that specialization in the DITA OT which comes bundled with Oxygen 16.1?

Could you maybe send us a sample topic on which the problem can be obtained? Or is it just a regular DITA topic which uses the <abbreviated-form> element?

Those two errors reported when opening the abbreviateDomain.mod are natural, the file is just a module which is not valid by itself, it is only valid in the context of a larger DTD which uses the module.

Regards,
Radu

Re: 16.1.0 - Parser Errors in abbreviatiatedDomain.mod

Posted: Fri Oct 10, 2014 10:53 am
by lostiniceland
Hi Radu

Thanks for your test and explaining the issue with the .mod

First, I did not uninstall 16.0 before installing 16.1.

Regardings your other questions:
Yes, I use specializations, but those are just custom-type-shells as recommendet by Elliot Kimblers book. So its just a copy from the original dtd.
There is one exception though. For longer documents I use the dita-for-publishers chapter-type and in this case the programming- and software-domain-modules are added to the type-shell in order to use the markup.

I checked my code again, and the error in the editor is only showing up on d4p-types. Using abbreviated-form in a concept for example is working as expected.

Re: 16.1.0 - Parser Errors in abbreviatiatedDomain.mod

Posted: Fri Oct 10, 2014 11:05 am
by Radu
Hi,

I tried creating a new D4P Chapter specialization with the 16.1 plugin with the content:

Code: Select all

<!DOCTYPE chapter PUBLIC "urn:pubid:dita4publishers.sourceforge.net:doctypes:dita:chapter" "chapter.dtd">
<chapter
id="chapter-id">
<title></title>
<body>
<p>dsadsaddsa<abbreviated-form keyref=""/>dsa dsad</p>
</body>
</chapter>
and I still cannot reproduce the issue.
The fact that you did not un-install 16.0 might be a problem, two versions of Oxygen usually do not interact very well on the same Eclipse installation.

I'm not sure what changes you have in the DTDs on your side though.

Regards,
Radu

Re: 16.1.0 - Parser Errors in abbreviatiatedDomain.mod

Posted: Wed Nov 12, 2014 10:04 pm
by lostiniceland
The Problem has been solved. Sorry for the confusion.

The new release includes an update of the Dita OT which fixed an issue with the abbreviation-domain in the dita-for-publishers-plugin. This domain is now included by default and this caused the error because our custom shell also included this domain.

We removed the abbreviation-domain in our custom-shell and everything is now working again.