F
felix.dorner
Hi. I have problems validating the following document doc.xml using
onsgmls. I call onsgmls like this:
the output is:
onsgmls:1_3_b.xml:2:19:W: cannot generate system identifier for
document type "contacts"
onsgmls:1_3_b.xml:14:0:E: reference to entity "contacts" for which no
system identifier could be generated
onsgmls:1_3_b.xml:2:0: entity was defined here
doc.xml:
<?xml version="1.1" ?>
<!DOCTYPE contacts [
<!ELEMENT contacts (contact*)>
<!ELEMENT contact (name, email, phone, affiliation)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT phone (#PCDATA)>
<!ELEMENT affiliation (comp, cust_since, cust_until)>
<!ELEMENT comp (#PCDATA)>
<!ELEMENT cust_since (#PCDATA)>
<!ELEMENT cust_until (#PCDATA)>
<!ENTITY adoe "<comp>Doe
Inc</comp><cust_since>10/2001</cust_since><cust_until>2/2005</cust_until>">
<!ENTITY amar "<comp>Maryland
Inc</comp><cust_since>2/2002</cust_since><cust_until/>">
]>
<contacts>
<contact>
<name>John Doe</name>
<email>[email protected]</email>
<phone>0621/2040503</phone>
<affiliation>&adoe;</affiliation>
</contact>
</contacts>
I believe this document is valid. So the errors of onsgmls must be some
kind of configuration problem. Can anyone tell me what onsgmls tries to
do and why it fails validating the document?
Thanks a lot.
Felix
onsgmls. I call onsgmls like this:
onsgmls -s /usr/share/sgml/xml.dcl doc.xml
the output is:
onsgmls:1_3_b.xml:2:19:W: cannot generate system identifier for
document type "contacts"
onsgmls:1_3_b.xml:14:0:E: reference to entity "contacts" for which no
system identifier could be generated
onsgmls:1_3_b.xml:2:0: entity was defined here
doc.xml:
<?xml version="1.1" ?>
<!DOCTYPE contacts [
<!ELEMENT contacts (contact*)>
<!ELEMENT contact (name, email, phone, affiliation)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT phone (#PCDATA)>
<!ELEMENT affiliation (comp, cust_since, cust_until)>
<!ELEMENT comp (#PCDATA)>
<!ELEMENT cust_since (#PCDATA)>
<!ELEMENT cust_until (#PCDATA)>
<!ENTITY adoe "<comp>Doe
Inc</comp><cust_since>10/2001</cust_since><cust_until>2/2005</cust_until>">
<!ENTITY amar "<comp>Maryland
Inc</comp><cust_since>2/2002</cust_since><cust_until/>">
]>
<contacts>
<contact>
<name>John Doe</name>
<email>[email protected]</email>
<phone>0621/2040503</phone>
<affiliation>&adoe;</affiliation>
</contact>
</contacts>
I believe this document is valid. So the errors of onsgmls must be some
kind of configuration problem. Can anyone tell me what onsgmls tries to
do and why it fails validating the document?
Thanks a lot.
Felix