Error XML DTD Contain

Oxygen general issues.
ESTRADE
Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

Error XML DTD Contain

Post by ESTRADE »

Hi,
I use oXygen Editor version 14.2

I have a xml file when I open it on oXygen I get the following error
Unexpected element "para". The content of the parent element type must match "(valeur|evidence|tabref|imgref|imgplref|opref|s-opref|ss-opref|outilref|ingdref|chpref-e|opref-e|imgref-e|plref-e|tabref-e|ftref-e|repref-e|pref-e|docref-e|schref-e|sctref-e|sscref-e|sopref-e|ssoref-e|desrf-e)".

The line where error is detected contain :
:<para><pref-e><idsdm>xxxxx</idsdm></pref-e></para>

I don't understand because <pref-e> exist in the list of possibilities
Thank you for help
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Error XML DTD Contain

Post by adrian »

Hi,

Well, the problem is the context of 'para' (Unexpected element "para". ), not 'pref-e', but I can't see that in your example.
Can you please send us a sample file showing the problem to support AT oxygenxml DOT com?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
ESTRADE
Posts: 46
Joined: Mon Aug 22, 2011 3:53 pm

Re: Error XML DTD Contain

Post by ESTRADE »

Hi,

Indeed, in the DTD I realized that PARA element could not contain elements PARA
example :

Code: Select all

<para>xxxxxx <para><pref-e><idsdm>yyyyyy</idsdm></pref-e></para></para>
I changed the DTD, I do not have this error.

I have another problem

Code: Select all

E [Xerces] ENTITY "IMG.0" is not unparsed.
In XML FILE :

Code: Select all

<img nom="IMG-1" l="450" h="450"><refdmimg ref="FIG-1"/><image NOMFIC="IMG.0"/></img>
I do not understand the problem ?
Thank you for help
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Error XML DTD Contain

Post by adrian »

Hello,

I've seen something similar here:
http://www.webdeveloper.com/forum/showt ... y-problems
Look at the icon attribute (icon ENTITY #REQUIRED).
In that case the mistake was that the declared entity should have been named 'picture', but was named 'image'.

As in the link above, the problem is in your DTD. You have probably declared the attribute NOMFIC as an entity.
If you want to go the entity route, you will have to declare the entity 'IMG.0'. Otherwise, just change the attribute declaration in the DTD to CDATA instead.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply