i have a very simple xml document which is valid with respect to a trivial schema. The Schema in RELAX NG compact Syntax defines an element p of type text. An Entity is defined in the internal subset and expanded as expected. When i try to referenceanother entity which is not declared, an error is reported as expected.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="a.rnc" type="application/relax-ng-compact-syntax"?>
<!DOCTYPE p [
<!ENTITY t "test" >
]>
<p>This is a &t; and another &t1;</p>
Everything fine up to now. But when i have some parameter entities with plenty of entities, the same document is validated without any errors, although the second entity reference is still not declared.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="a.rnc" type="application/relax-ng-compact-syntax"?>
<!DOCTYPE p [
<!ENTITY % isolat1 PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "http://www.w3.org/2003/entities/iso8879/isolat1.ent">
<!ENTITY % isolat2 PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "http://www.w3.org/2003/entities/iso8879/isolat2.ent">
<!ENTITY % isopub PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "http://www.w3.org/2003/entities/iso8879/isopub.ent">
%isolat1;
%isolat2;
%isopub;
<!ENTITY t "test" >
]>
<p>This is a &t; and another &t1;</p>
I am sure that there is no entity called t1 declared in any of the parameter entity files. Looking from the author view gives the expanded value "test" for &t; and nothing for &t1;
Conclusion: the fact that there is an undeclared entity is not detected or detected but not reported.
Is this a bug or did i miss somethin in the configuration?
Environment: Windows 7, Oxygen 15.2.
Sincerely,
Frank