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? 22 1929
Ted wrote: 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?
As you say, the DTD is local; I can't inspect it. You may or may not
have defined those entities. Consider defining them in an inline DTD
subset; you can't count on the browser fetching your DTD.
--
Jack.
Ted wrote: 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?
For a start, the XHTML support inIE6 is not very good. You also must
validate your XHTML, that should go a long way in getting the browsers
to display your code correctly.
Also, use a proper XHTML Strict Doc Type as that will be better
recognized by browsers.
--
Regards Chad. http://freewebdesign.cjb.cc
Ted wrote: 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.
Right - because Firefox currently is not able to fetch external DTD's
of any kind. See <https://bugzilla.mozill a.org/show_bug.cgi?id =35984>
and outsprings. A very nasty bug forcing to declare all extra entities
in internal DTD like
<!DOCTYPE template [
<!ENTITY nbsp " ">
... etc
]>
Note: there is no "local DTD" as a term. There is external DTD (your
case) and internal DTD (my sample).
In IE6, the <br /> tag doesn't cause a line break.
Because an XML document in default XML namespace has no special
treatment for <br /> - it's just a well-formed element w/o closing tag.
It meay mean something important to HTML parser (like "make line break
here"), but mute to XML.
Use your template in XSL template and link it to XML data file so the
resulting page would be HTML. Briefly: stop /hacking/ things and start
/using/ them ;-)
<comp.text.xm l> is another good source of help on the matter.
VK wrote: Use your template in XSL template and link it to XML data file so the resulting page would be HTML. Briefly: stop /hacking/ things and start /using/ them ;-)
Also it is not clear why did you call the post " xhtml teething
troubles" as the linked document has no relation neither to XHTML nor
to HTML. It's a well-formed (accounting extra entities in DTD) XML
document served as XML document.
IE handles is absolutely correctly, FF cannot retrieve DTD because of
bug I mentioned so it breaks its "well-formedness".
In both cases it is really out of the scope of (X)HTML authoring,
<comp.text.xm l> is more relevant.
Ted wrote: http://homepage.ntlworld.com/r.a.mcc..._local_dtd.xml doesn't work properly in Firefox or IE6.
Pragmatically, I think you're stuffed. It appears to be implemented
correctly as a piece of XML work, but this just isn't how the web
works, barely how XML is used (in practice) and is _certainly_ not a
technique that's usable on the web for the forseeable future.
There's a raft of valid techniques out there that just aren't commonly
used in practice, so support for them varies from poor to none.
On 31/05/2006 07:48, VK wrote: [...] Firefox currently is not able to fetch external DTD's of any kind.
That statement, as-is, is entirely false. Firefox can process external
subsets, but only does so in certain circumstances and they do not
include DTDs found on the Web.
[...] A very nasty bug
How many times do I have to repeat this: it is /not/ a bug! It may not
be desirable, but it's entirely correct behaviour. As I've also stated
before, Firefox is not the only browser featuring an XML processor that
doesn't process external subsets.
forcing to declare all extra entities in internal DTD [...]
Or don't use entities; encode the document using UTF-8, for example, and
enter the characters directly.
[snip]
Note: there is no "local DTD" as a term.
The OP didn't use it as such. From his perspective the DTD is local as
it's on the same server. Of course, to the rest of us, it's just as remote.
[snip]
Mike
--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Michael Winter wrote: [...] Firefox currently is not able to fetch external DTD's of any kind.
That statement, as-is, is entirely false. Firefox can process external subsets, but only does so in certain circumstances and they do not include DTDs found on the Web.
Yeh, right... Firefox can process external subsets but it cannot
process external subsets. :-) [...] A very nasty bug
How many times do I have to repeat this: it is /not/ a bug! I
You may repeat it as many times as you want: it doesn't change the
production mechanics.
<http://www.w3.org/TR/REC-xml/>
<q>The productions later in this specification for individual
nonterminals (elementdecl, AttlistDecl, and so on) describe the
declarations after all the parameter entities have been included.</q>
Plain and simple: either you include all declared entities and start
production, or you don't bother with the production at all. I already
explained the real issue with this bug: the impossibility to divide
standard-wise between bogus DTD in (X)HTML and real DTD
"VK" <sc**********@y ahoo.com> writes: Note: there is no "local DTD" as a term. There is external DTD (your case) and internal DTD (my sample).
There ain't no 'external DTD' and 'internal DTD' as terms as well,
except perhaps in your parallel universe. There is an external and an
internal subset, and there is a DTD, which is the sum of both.
--
||| hexadecimal EBB
o-o decimal 3771
--oOo--( )--oOo-- octal 7273
205 goodbye binary 111010111011
Eric B. Bednarz wrote: "VK" <sc**********@y ahoo.com> writes:
Note: there is no "local DTD" as a term. There is external DTD (your case) and internal DTD (my sample).
There ain't no 'external DTD' and 'internal DTD' as terms as well, except perhaps in your parallel universe. There is an external and an internal subset, and there is a DTD, which is the sum of both.
I'm affraid that the you are who's speaking from a parallel universe
;-) There are "external DTD subsets" and "internal DTD subsets"
commonly referred as "external DTD" and "internal DTD" ("commonly"
means by authoring software producers and in manuals, not by VK).
Before inventing more stuff, check the Web. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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...
|
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...
|
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);
|
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...
| |
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;
|
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 & to
clients instead of &.
Any help?
Thanks,
Alejandro.
|
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
|
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
|
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: 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...
|
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...
|
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: 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: 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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |