Hi,
I am trying to track down a bug in a program I've written which
parses an XHTML document. The document has been cleaned up with Tidy and
converted to XHTML and has a strict.dtd reference. When the xerces
parser hits a line in the dtd, I get the following output:
**Parsing Fatal Error**
Line: 81
URI: http://www.w3.org/TR/REC-html40/strict.dtd
Message: The declaration for the entity "ContentTyp e" must end with '>'.
I looked at the dtd in XMLSpy and elsewhere and it does seem to be
incorrect... can anybody help me out here?
-John 3 4577
On Tue, 15 Mar 2005 04:00:21 +0000, John Resler wrote: I am trying to track down a bug in a program I've written which parses an XHTML document. The document has been cleaned up with Tidy and converted to XHTML and has a strict.dtd reference. When the xerces parser hits a line in the dtd, I get the following output:
**Parsing Fatal Error** Line: 81 URI: http://www.w3.org/TR/REC-html40/strict.dtd Message: The declaration for the entity "ContentTyp e" must end with '>'.
I looked at the dtd in XMLSpy and elsewhere and it does seem to be incorrect... can anybody help me out here?
That's an HTML DTD, so it's no wonder that an XML parser cannot parse it.
Try using an XHTML DTD, such as
<http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>.
Dean Tiegs wrote: On Tue, 15 Mar 2005 04:00:21 +0000, John Resler wrote:
I am trying to track down a bug in a program I've written which parses an XHTML document. The document has been cleaned up with Tidy and converted to XHTML and has a strict.dtd reference. When the xerces parser hits a line in the dtd, I get the following output:
**Parsing Fatal Error** Line: 81 URI: http://www.w3.org/TR/REC-html40/strict.dtd Message: The declaration for the entity "ContentTyp e" must end with '>'.
I looked at the dtd in XMLSpy and elsewhere and it does seem to be incorrect.. . can anybody help me out here?
That's an HTML DTD, so it's no wonder that an XML parser cannot parse it. Try using an XHTML DTD, such as <http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>.
Ok, but it's still a dtd and has to conform to rules for dtd format.
Why the parse error? I thought a dtd was a dtd...? Thanks for the
help by the way.
On Tue, 15 Mar 2005 04:47:48 +0000, John Resler wrote: Ok, but it's still a dtd and has to conform to rules for dtd format. Why the parse error? I thought a dtd was a dtd...? Thanks for the help by the way.
There are SGML DTDs and then there are XML DTDs. HTML is an SGML
language, so it has an SGML DTD. XHTML is an XML language and has an XML
DTD.
XML is a subset of SGML, so an SGML parser can parse XML documents and
DTDs, but in general an XML parser cannot parse SGML documents and DTDs.
For example, in SGML it's OK to put comments inside entity declarations
(delimited with double hyphens: --this is a comment--), but in XML this is
forbidden. It is just such a comment that your XML parser is rejecting. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bernd Fuhrmann |
last post by:
Hi!
I have some trouble with some simple stupid XSLT-stuff.
My stylesheet:
-------------
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
by: Patrick |
last post by:
Hi
I am fairly new to CSS and the web.I am trying to build a site more to
practice my skills than for the site itself.
I have been focusing on CSS and try my best to make it work in I.E
6.0, Opera 7.23, Mozilla 1.4 and N.N. 7.1.
My site was doing fine until i read i was supposed to keep everything
validated so i entered a strict html 4.01 doctype with url
following.My HTML validated fine.
So i validated my CSS and beside a little...
|
by: Mark McLellan |
last post by:
Dear all
Following the oft-repeated advice here and ciwas I have made my site
nearly 4.01 strict (working on it). There are some items on which I would
appreciate your advice:
1. Hidden fields
http://www.zoo.co.uk/~mmenterprises/contact.htm
I am using FormMail from Matt's Script Archive. The W3C validator
objected to the hidden fields unless I put, say, P round them. That gave
|
by: rbronson1976 |
last post by:
Hello all,
I have a very strange situation -- I have a page that validates (using
http://validator.w3.org/) as "XHTML 1.0 Strict" just fine. This page
uses this DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
When I change the DOCTYPE to (what should be the equivalent):
|
by: Greg G |
last post by:
http://mysite.verizon.net/gdguarino/alps.htm
I've got a navigation box with links to the other pages on the site.
Below that I've got another box with a hastily-written anecdote in it
(to be edited later). I'd like the two boxes to be pretty close
together.
The problem is that the distance between them is different in IE than
in Firefox. I assume that the reason for this is that I have a lot of
padding at the top of the nav box to...
| |
by: David Findlay |
last post by:
I'm trying to do a table for laying out a links page in CSS. See
http://qldstorms.com/links.php. My stylesheet is at
http://qldstorms.com/styles/screen.css. My problem is that if the link name
in the first column get's word wrapped, but the description text in the
second column doesn't, the next row get's wrapped to sit next second line
of the link name. Also if a two line link name is last in the category box,
it'll cross the outside of...
|
by: Rich |
last post by:
Hello,
If I leave Option Strict Off I can use the following
syntax to read data from a Lotus Notes application (a
NotesViewEntry object represents a row of data from a
Lotus Notes View - like a record in a sql Server view)
....
Dim entry As Domino.NotesViewEntry
Dim obj As Object
str1 = entry.ColumnValues(0)
|
by: Gernot Frisch |
last post by:
Hi,
I have a site:
http://www.glbasic.com/bugs.htm
where 2 divs (class = "outer") overlap in Firefox. In IE it looks good
(although the text part has a too large distance from the header...)
and it should look like this:
http://www.glbasic.com/main.php?lang=en&site=features
|
by: Richard Lionheart |
last post by:
Hi All,
I've taken the advice of a few people and managed to cobble together an
HTML 4.01 Strict-compliant document (according to the W3C Validation
Service), but the way I try to pass a TextArea object to a script
function doesn't work.
What's the least amount of change I can make to this to remain
compliant but also correct for execution?
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |