Page 1 of 1

Error XML DTD Contain

Posted: Sat Sep 21, 2013 7:55 am
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

Re: Error XML DTD Contain

Posted: Mon Sep 23, 2013 6:14 pm
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

Re: Error XML DTD Contain

Posted: Tue Sep 24, 2013 9:17 am
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

Re: Error XML DTD Contain

Posted: Tue Sep 24, 2013 12:52 pm
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