473,806 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

xhtml teething troubles

Ted
This page
http://homepage.ntlworld.com/r.a.mcc..._local_dtd.xml
doesn't work properly in Firefox or IE6. The faults are different. In
Firefox the TestText entity is not recognised. In IE6, the <br /> tag
doesn't cause a line break. Can anyone tell me what I'm doing wrong?

May 30 '06
22 1934
VK
Michael Winter wrote:
<OT>
On 31/05/2006 15:01, VK wrote:
At the same time I miss a lot of professional knowledge in XML
and XSLT, definitely weak in reading W3C docs and my English
may fell down - especially after midnight.
Full ACK. Any relevance to this particular thread? Up to you anyway.
You can even automate the process and use this quote as signature in
your posts.
</OT>
The standalone document declaration is irrelevant here.
Either you did not read 2.9 or it escaped you completely. You may want
to try again.
Your opinion on the matter is irrelevant. The required behaviour is what
it is. Validating processors must read and process the complete DTD, and
any external parsed entities. Non-validating processors are only
required to process the internal subset (if present) up to the first
unread parameter entity (except when processing a standalone document).


b.s. - and a plain one. Nothing more to say. Read more authoring
manuals (and lesser W3C's revelations - though even there you have to
apply yourselve to read out such nonsense).

Full disclosure: I am aware of two camps around of XHTML: the camp
"XHTML in My Heart" and the camp "XHTML in My Content-Type". I have no
aim nor desire to fight with the first one. If one thinks that the
document is whatever you think it is, it's fine. Private fantasies are
not my preoccupation. But OP wanted to /study XHTML behavior in
different situations/. And one cannot study the /actual behavior/ of an
/imaginary thing/. A Shaolin monk on the third level of Enlightment may
possibly do it, but not a regular person. So before to study how XHTML
document handles this or that situation, one needs first to get XHTML
document (application/xhtml+xml) itself for stidies. Otherwise it will
be experimentation either with HTML (if text/html) or with XML
(text/xml) - in both cases irrelevant to XHTML specifics.

Jun 1 '06 #21
On 01/06/2006 14:26, VK wrote:
Michael Winter wrote:
[VK's admission to lacking XML knowledge]
Full ACK. Any relevance to this particular thread?


This thread is a discussion of an application of XML: XHTML. If you
don't understand XML properly, the OP should be aware of your propensity
for error.

[snip]
The standalone document declaration is irrelevant here.


Either you did not read 2.9 or it escaped you completely. You may
want to try again.


That's quite funny, considering that it was I that explained to you what
the standalone document declaration meant.

I wrote at the time:

The standalone document declaration doesn't instruct a
validating processor to 'do' anything. It is a requirement of
validating processors themselves to process the DTD and any
referenced external entities.

The standalone document declaration does have an impact on
well-formedness (see Entity Declared in section 4.1 [p.33]),
and on non-validating processor when reading parameter
entities.
-- oY************* *****@text.news .blueyonder.co. uk

As far as the specification reference is concerned, I meant the
following paragraph in particular:

Note that non-validating processors are not obligated to to
read and process entity declarations occurring in parameter
entities or in the external subset; for such documents, the
rule that an entity must be declared is a well-formedness
constraint only if standalone='yes '.
-- 4.1 Character and Entity References, XML 1.0, 3rd ed.

As the document under discussion is not a standalone document and we are
dealing with non-validating processors, it is not a well-formedness
error to encounter a reference to an undeclared entity (I've explained
all of this before). That Firefox and Opera do report errors is
complicated in part[1] by the presence of a public identifier; this
identifier will match entries in their internal catalogues, resulting in
the definition of entities common to XHTML (&aacute;, and the like). The
external subset itself is ignored.

<supposition>Th e public identifier, and the subsequent use of internal
definitions, produces behaviour somewhat like the processing of an
internal subset. As the TestText entity isn't defined in that internal
DTD, the later reference is considered an error.</>

If validation against the XHTML Basic DTD is desired, then perhaps the
internal subset should define the TestText entity:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd" [
<!ENTITY TestText "This is some test text">
]>
Your opinion on the matter is irrelevant. The required behaviour is
what it is. Validating processors must read and process the
complete DTD, and any external parsed entities. Non-validating
processors are only required to process the internal subset (if
present) up to the first unread parameter entity (except when
processing a standalone document).


b.s. - and a plain one.


If that's your opinion, then why don't you suggest to the W3C that the
next major version of XML makes processing external markup declarations
a requirement? If they say that doing so would be a bad idea, ask them
why they think so. Certainly stop bitching about it here. It won't
change anything, I don't care what you think about the W3C, and I doubt
anyone else does, either.

[snip]

Mike
[1] ...complicated in part

Firefox features a bug that causes a well-formedness error to
be raised for non-standalone documents containing undeclared
entities. Opera acts correctly in this instance by bypassing
the reference. Remove the public identifier and compare the
behaviour of both browsers.

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Jun 1 '06 #22
VK

Michael Winter wrote:
<snip>

Leaving out the "facts" in your post: just simply look at you. On the
run of this branch you fighting for the holly right of XML processor do
not process external DTD subsets. And you are fighting for it as it was
a vital part of XML mechanics. You don't want for XML a freedom to
neglect linked XSL templates; you don't want it to be able to skip on
loading stylesheets. Everything else - but for the right to not load
external DTD's you are ready to read all available specs upside down
and by diagonal.

This alone is the best proof of the real reason of the "DTD issue" I
spelled several times already.

And sorry, I'm opting out on the theoretical discussion "XML processor
has rights to disregard selectively some linked resources such as...".
That's too much crazy to follow.

Paragraphs 2.8 and 2.9 to start with, the rest of the Web to continue -
whoever wants to continue by himself.

Jun 1 '06 #23

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

Similar topics

0
1660
by: Peter Rohleder | last post by:
Hi, I have a few simple questions in order to use modularized xhtml and getting it to work. A simple example may make this obviouse: Lets say we want to create a simple xml-file to reflect a faq-structure.
59
4784
by: Philipp Lenssen | last post by:
I've tested some of the new Nokia 6600 functionality. It ships with WAP2 and XHTML Support (it says). What it does is check the Doctype -- if it's not the XHTML Mobile Profile Doctype, but a XHTML1.0 Strict one, the media-handheld CSS is _ignored_. Only with the Nokia Doctype, the CSS is used. I find this really annoying as it goes against the whole idea of media-independent XHTML Strict along with stylesheets. On the good side, WML...
32
4546
by: jp29 | last post by:
My take on problems composing, serving and rendering XHTML documents/web pages: 1. Typical conscientious web authors are producing XHTML documents (Web pages) that feature valid Markup and with the content (MIME) type specified as text/html (http://keystonewebsites.com/articles/mime_type.php). These pages are then loaded on to their Server where they are served to Rendering Agents (browsers) as HTML (SGML application) documents with no...
16
7122
by: Mcginkel | last post by:
I am trying to find a way to load XHTML content in an Iframe. I use to do this in html by using the following code : var iframeObject = document.createElement("iframe"); MyDiv.appendChild(iframeObject); var data = "<html><head><title>testing</title></head><body>data</body></html>" iframeObject.contentDocument.open(); iframeObject.contentDocument.writeln(data);
82
5723
by: Buford Early | last post by:
I read this in http://annevankesteren.nl/2004/12/xhtml-notes "A common misconception is that XHTML 1.1 is the latest version of the XHTML series. And although it was released a bit more than a year later then the first version of XHTML 1.0, the second edition is actually newer. Furthermore, XHTML 1.1 is not really the follow-up of XHTML 1.0" I thought that XHTML 1.1 was the follow-up to XHTML 1.0 and that XHTML 2.0 will someday be the...
2
2644
by: Joris Janssens | last post by:
I'm trying to write a program for validating XHTML 1.1-documents against the XHTML 1.1 DTD (which is actually the same as validating an XML-file) but I always get a "(404) Not found" error. This is the program itself : ******************************************************************** using System; using System.Xml; using System.Xml.Schema;
12
2418
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
4
3865
by: seberino | last post by:
I'm trying to extract some data from an XHTML Transitional web page. What is best way to do this? xml.dom.minidom.parseString("text of web page") gives errors about it not being well formed XML. Do I just need to add something like <?xml ...?or what? Chris
7
1635
by: greg | last post by:
Thomas Philips wrote: Have a look in /Library/Frameworks/Python.framework/Versions/2.5 You can't -- this feature only exists in the Search window, which is a different kind of window from the normal Finder
0
9719
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
9597
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,...
0
10620
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
10369
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...
1
10372
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9187
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
6877
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();...
0
5546
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...
2
3851
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.