473,804 Members | 4,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.x ml:2:19:W: cannot generate system identifier for
document type "contacts"
onsgmls:1_3_b.x ml:14:0:E: reference to entity "contacts" for which no
system identifier could be generated
onsgmls:1_3_b.x ml: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_sinc e>10/2001</cust_since><cus t_until>2/2005</cust_until>">
<!ENTITY amar "<comp>Mary land
Inc</comp><cust_sinc e>2/2002</cust_since><cus t_until/>">
]>
<contacts>
<contact>
<name>John Doe</name>
<email>jo**@doe .com</email>
<phone>0621/2040503</phone>
<affiliation>&a doe;</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 1984
fe**********@gm ail.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.x ml:2:19:W: cannot generate system identifier for
document type "contacts"
onsgmls:1_3_b.x ml:14:0:E: reference to entity "contacts" for which no
system identifier could be generated
onsgmls:1_3_b.x ml: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**********@gm ail.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
5077
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 excellent answers (thanks!). It will be the basis of a slightly more complicated function for rendering a two-level navigation bar ( Don't have time to get into design of a multi-styletype renderer for n-level hierarchies. ) This is a single function...
2
6935
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 follows: <silcn:silcn xmlns:silcn='http://silcn.org/200309' xmlns='http://xmlprobe.com/200312'> it contains an element <report> off the root and also a separate <Silcn:report> again off the root.
1
3975
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 : Validation error: The element 'http://xmlns.somewhere.com/something:rDetail' cannot contain text. Expected 'http://xmlns.somewhere.com/something:AList'. An error occurred at , (1, 533). ----------
0
3580
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 public RegistrationResponse registerDevice(RegistrationRequest regReq) throws RemoteException
3
3485
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 xmlns="http://www.w3.org/2001/XMLSchema" xmlns:this="this" targetNamespace="this" elementFormDefault="qualified"> <complexType name="abstractAnswerType" abstract="true"/> <complexType name="yesWithDescType">
1
10521
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
8286
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 problems and this one is really getting to me... I have a page that allows you to Browse Authors. There are three drop down boxes that auto-populate via AJAX. I have a file which it calls and returns the dynamically built XML file in the boxes...
7
3359
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 (container.appendChild(this.toolbar);) saying "Node cannot be inserted at the specified point in the hierarchy" code: "3" I have two questions: - who would help me with this error - please provide other feedback about my code, since I want to write a solid...
3
4645
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 process before jumping into it". One site even recommends that this training process should take at least 2-3 weeks. I'm not sure how you can train for such a process...but maybe I'll find something while I'm researching. I was wondering if anyone...
0
9707
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10586
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.