473,388 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

onsgmls: cannot generate system identifier for document type "..."

Hi. I have problems validating the following document doc.xml using
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>jo**@doe.com</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

May 15 '06 #1
3 1955
fe**********@gmail.com wrote:
Hi. I have problems validating the following document doc.xml using
onsgmls. I call onsgmls like this:
onsgmls -s /usr/share/sgml/xml.dcl doc.xml

Hmmm. It validates OK here, using the command

onsgmls -wxml -s -E 5000 /usr/share/sgml/xml.dcl test.xml

which Emacs generates for me when I hit C-c C-v. And it also
works without the -wxml.
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


Are you sure you're validating doc.xml?
It looks like you're validating 1_3_b.xml which is a different file.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
May 16 '06 #2
Hi,

I found out that the error occurs only when I use the xml declaration
in /usr/share/sgml/xml.dcl
Using /usr/share/sgml/openjade-1.3.2/pubtext/xml.dcl does fine.

Should the two files not define the 'same xml' ?

felix

May 16 '06 #3
fe**********@gmail.com wrote:
Hi,

I found out that the error occurs only when I use the xml declaration
in /usr/share/sgml/xml.dcl
Using /usr/share/sgml/openjade-1.3.2/pubtext/xml.dcl does fine.

Should the two files not define the 'same xml' ?


Yes, but there are now several versions floating around the net because
at the time of release, different editors supported (or didn't support)
different things (like Unicode, for example). Sorry, I should have
thought of this.

///Peter
May 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Richard A. DeVenezia | last post by:
I hope this is the end of my present 'discovery' phase. I've learned alot about JavaScript in a short time and my head hurts. The following is what came out of all my questions and all the...
2
by: PeterW | last post by:
I have an xml file from which I want to generate an xsd schema and at a later stage a cs class. The xml file has a mix of defined namespaces and also an empty namespace. These are defined as...
1
by: BillAtWork | last post by:
Hi, I'm trying to validate an XML document against an XSD schema and I receive the following error: ---------- MyCode.CreateValidRequest : System.Web.Services.Protocols.SoapException :...
0
by: shaily | last post by:
hi I have a java web service called "Registration service" and C# client which is a consumer of that service java web service running under Tomcat has following interface API exposed ...
3
by: Lord0 | last post by:
I am trying to implement variable content containers using an abstract type and type substitution. My schema is as follows: <?xml version="1.0" encoding="UTF-8"?> <schema...
1
by: Martin Plechsmid | last post by:
Hello, (After investigating my real problem) I've got a C# web service containing a single method: public MyBDO Test() { return null; }
4
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my...
7
by: dennis.sprengers | last post by:
I am trying to write an editor object, which adds some functionality and a toolbar to every textarea with a "form-textarea" class. Both FF and IE generate an error in line 20...
3
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.