[xml] Problem parsing "unparsed" entity



I have this two files
- test-dtd.dtd -
<!ELEMENT TEST-DTD (#PCDATA)>
<!NOTATION type1 SYSTEM "program1">
<!NOTATION type2 SYSTEM "program2">
<!ENTITY FOO1 "bar1">
<!ENTITY FOO2 SYSTEM "file.type2" NDATA type2>

- test-dtd.xml -
<?xml version="1.0"?>
<!DOCTYPE TEST-DTD SYSTEM "test-dtd.dtd">
<TEST-DTD>
&FOO1;
</TEST-DTD>

xmllint --valid --debug test-dtd.xml says
DOCUMENT
version=1.0
URL=test-dtd.xml
standalone=true
  DTD(TEST-DTD), SYSTEM test-dtd.dtd
    ENTITYDECL(FOO2), unparsed
     SystemID=file.type2
     content=type2
  ELEMENT TEST-DTD
    TEXT
      content= 
    ENTITY_REF(FOO1)
      INTERNAL_GENERAL_ENTITY FOO1
      content=bar1
    TEXT
      content= 

I think there's a bug for "unparsed" entity similar to that for notations
infact entity FOO2 is in the intSubset of the document instead of in the
extSubset. Then, "unparsed" entity should be only external.

Thanx
  Paolo
--
Paolo Casarini - casarini cs unibo it





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]