473,623 Members | 2,453 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

More accurate testing of XHTML documents with XHTML Proxy

Hi!

I would like to announce XHTML Proxy, a service that allows more accurate
testing of XHTML documents.

<http://hixie.ch/advocacy/xhtml> states that "Sending XHTML as text/html
Considered Harmful" since "authors write XHTML that makes assumptions that
are only valid for tag soup or HTML4 UAs" and might find that the "site
breaks horribly" when they decide to "send the same content as
application/xhtml+xml".

This is where XHTML Proxy can help. It tunnels HTTP requests and changes
the MIME type of text/html resources to application/xml. You can then use
XHTML user agents such as Firefox, Opera or Amaya to browse a site without
modifications to the server's configuration.

Just go to <http://schneegans.de/xp/> and give it a try. Comments welcome.

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"
Jun 5 '06 #1
17 1994
Christoph Schneegans <Ch*******@Schn eegans.de> wrote:
I would like to announce XHTML Proxy, a service that allows more accurate
testing of XHTML documents.

<http://hixie.ch/advocacy/xhtml> states that "Sending XHTML as text/html
Considered Harmful" since "authors write XHTML that makes assumptions that
are only valid for tag soup or HTML4 UAs" and might find that the "site
breaks horribly" when they decide to "send the same content as
application/xhtml+xml".

This is where XHTML Proxy can help. It tunnels HTTP requests and changes
the MIME type of text/html resources to application/xml. You can then use
XHTML user agents such as Firefox, Opera or Amaya to browse a site without
modification s to the server's configuration.

Just go to <http://schneegans.de/xp/> and give it a try. Comments welcome.


This is so idiotic in every aspect, are you taking the piss?

--
Spartanicus
Jun 6 '06 #2
"Spartanicu s" wrote:
<http://schneegans.de/xp/>


This is so idiotic in every aspect, are you taking the piss?


You prefer broken XHTML documents to proper ones, of course.

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"
Jun 6 '06 #3

Christoph Schneegans wrote:
"Spartanicu s" wrote:
<http://schneegans.de/xp/>


This is so idiotic in every aspect, are you taking the piss?


You prefer broken XHTML documents to proper ones, of course.

I think it's a case of a lack of support for XHTML, in it's true form
from browsers such as IE and I am sure their would be others.
So you need to eather serve your pages as Text/HTML or just use HTML
4.01 Strict.
Most web authors, or a lot in this group anyway choose to use HTML over
XHTML for very similar reasons to this. They don't want to write PHP
scripts to change the Domument type in the HTTP header of the document,
they would rather just use plain HTML, if you used XHTML in it's proper
form, you would need to still serve it as HTML to IE and other browsers
that have no XHTML support.
--
Regards Chad. http://freewebdesign.cjb.cc

Jun 6 '06 #4
Christoph Schneegans <Ch*******@Schn eegans.de> wrote:
<http://schneegans.de/xp/>


This is so idiotic in every aspect, are you taking the piss?


You prefer broken XHTML documents to proper ones, of course.


I'm of the opinion that anyone who considers XML restraints relevant to
documents served as text/html is delusional.

I'm against XHTML for almost all current day web authoring:
http://www.spartanicus.utvinternet.ie/no-xhtml.htm

--
Spartanicus
Jun 6 '06 #5

Christoph Schneegans wrote:
"Spartanicu s" wrote:
<http://schneegans.de/xp/>
This is so idiotic in every aspect, are you taking the piss?


I don't think this proxy is itself idiotic, just that almost every use
of it would be.
What is this thing actually useful for ?

It's _not_ useful for turning XHTML Appendix C documents into XHTML ~C
documents.
The rules are different for these documents and why should we want to
see some other site's Appendix C document in a way that it isn't, and
that it was never claimed to be?

It's not useful for feeding XHTML ~C content to XML browsers for
testing browsers. If you need to do that, just author a few documents
and set their HTTP headers accordingly.

It's not useful for testing XHTML documents, because if they're your
site, then you cna control their original headers.

It's of possibly marginal use for validation Appendix C documents to
see if they might also be valid ~C documents. I can't imagine why you'd
want to do such a thing, except possibly within a web design theory
group.

What it certainly will do is to present some valid Appendix C documents
in a way that will cause browsers to break, even when they ought not to
do so. Then the hixiephiles will shout out "XHTML is so evil" and put
the blame in completely the wrong direction.

You prefer broken XHTML documents to proper ones, of course.


"broken" - now there's a loaded term, which makes me disinclined to
take much notice of Christoph's postings. Appendix C is _not_
"broken", it's a valid alternative.

Jun 6 '06 #6
Andy Dingley wrote:
<http://schneegans.de/xp/>

It's not useful for testing XHTML documents, because if they're your
site, then you cna control their original headers.


In theory, you can. But most people are lazy. And pasting a URL in a form
is easier than editing your .htaccess. Furthermore, it's not trivial to
set up proper content negotiation, and you'll always struggle with caching
issues. For some authors, content negotiation is not an option at all -
what do you do if your website is running on IIS and you want to serve
static XHTML files?
What it certainly will do is to present some valid Appendix C documents
in a way that will cause browsers to break, even when they ought not to
do so.
Do you have an example of such documents? In my opinion, if an XHTML works
well when served as "text/html", but "breaks horribly" when served as
"applicatio n/xhtml+xml", there's something wrong with that document. This
is the very scenario that you can easily avoid with the help of XHTML
Proxy. XHTML Proxy is not an argument for <http://hixie.ch/advocacy/xhtml>,
but invalidates Hickson's reasoning.
Appendix C is _not_ "broken", it's a valid alternative.


I know. <http://schneegans.de/xp/> is XHTML 1.0 Strict served as
"text/html".

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"
Jun 6 '06 #7
Christoph Schneegans wrote:
Andy Dingley wrote:
> <http://schneegans.de/xp/>

It's not useful for testing XHTML documents, because if they're your
site, then you cna control their original headers.


In theory, you can. But most people are lazy. And pasting a URL in a form
is easier than editing your .htaccess. Furthermore, it's not trivial to
set up proper content negotiation, and you'll always struggle with caching
issues.


If the webmaster isn't up to the task of configuring the server to serve
application/xhtml+xml, then the pages aren't going to be served as
application/xhtml+xml. If the pages aren't going to be served as
application/xhtml+xml, then what is the point of testing them to see if
they would work if they were?
Jun 6 '06 #8

Christoph Schneegans wrote:
Andy Dingley wrote:

What it certainly will do is to present some valid Appendix C documents
in a way that will cause browsers to break, even when they ought not to
do so.


Do you have an example of such documents? In my opinion, if an XHTML works
well when served as "text/html", but "breaks horribly" when served as
"applicatio n/xhtml+xml", there's something wrong with that document.


Or something wrong with the browser. What happens if your proxy is used
to serve XHTML ~C to a browser that really doesn't wannt it? There will
be a browser-caused error, but this is likely to be presented as more
fuel for Hixie's "it's all XHTML's fault" argument.

There are admittedly few Appendix C documents that are not also valid
XHTML ~C (you have to juggle with encodings in the XML prolog). Some
serialisers for XHTML ~C generate <option selected> for better browser
compatibility, but that's anyway dodgy for being well-formed "XHTML",
even when served as text/html

My point is though that the only point for this proxy, where it's not
just easier to do it right, seems to be to deliberately confuse non-XML
browsers.

Jun 6 '06 #9
Andy Dingley wrote:
In my opinion, if an XHTML works well when served as "text/html", but
"breaks horribly" when served as "applicatio n/xhtml+xml", there's
something wrong with that document.
Or something wrong with the browser.


While testing my proxy, I've found _one_ bug in Opera 9.0b2, see
<news:e6******* ***@news.christ oph.schneegans. de>. I've found _dozens_ of
broken XHTML documents.
What happens if your proxy is used to serve XHTML ~C to a browser that
really doesn't wannt it? There will be a browser-caused error, but
this is likely to be presented as more fuel for Hixie's "it's all
XHTML's fault" argument.
<http://schneegans.de/xp/> clearly advises to use "XHTML user agents such
as Firefox, Opera or Amaya".
There are admittedly few Appendix C documents that are not also valid
XHTML ~C (you have to juggle with encodings in the XML prolog).


My experience is that most XHTML documents published on the web today even
violate basic XML well-formedness constraints. If this situation does not
change, Hickson will be proved correct. XHTML Proxy can help to change the
situation.

--
All free men, wherever they may live, are citizens of Denmark. And
therefore, as a free man, I take pride in the words "Jeg er dansker!"
Jun 6 '06 #10

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

Similar topics

4
2497
by: Peter C. Chapin | last post by:
I have a need to include Greek letters in some of my XML documents (the documents contain astronomical information and many stars are named using Greek letters). Following some earlier postings on the subject of entities. I did the following ---- top of file ---- <?xml version="1.0"?> <!-- I added this to an existing document. --> <!DOCTYPE observation-set >
59
4748
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...
23
4247
by: Gustaf | last post by:
I just read this article from today: http://webstandards.org/buzz/archive/2005_09.html I need some help understanding this sentense: The W3C recommends XHTML 1.1 should be served with the application/xhtml+xml MIME type, something that Internet Explorer does not currently support.
82
5669
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...
9
6721
by: anupamjain | last post by:
Hi, After 2 weeks of search/hit-and-trial I finally thought to revert to the group to find solution to my problem.(something I should have done much earlier) This is the deal : On a JSP page, I want to grab a URL and parse /change the HTML and send it to the JSP page. I take the URL from the user in a textbox (not the
11
2191
by: Kidogg | last post by:
Hi all, I'm attempting to write a validator for some email template files we use as part of our e-commerce application (incidentally in C#) and I've run into a problem as I'm not a huge user of XML. Essentially an email template can contain any valid XHTML, but also has tags such as <membershipcardheaderand <membershipcardfooterthat can appear anywhere in the body of the HTML. I've managed to download the XSD for XHTML transitional...
4
1792
by: VK | last post by:
Can well-formed but non-validated XHTML have extra namespaces? Say <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head>
14
1832
by: Stanimir Stamenkov | last post by:
I've found some contradiction I want to resolve. <http://www.w3.org/MarkUp/2004/xhtml-faq#mime11states: I've noted "_disallowed_ text/html" and "_must_ be sent with an XML-related media type" here as strong requirement. On the other hand the current XHTML 1.1 draft <http://www.w3.org/TR/2007/WD-xhtml11-20070216/conformance.html#strict>
2
1953
by: SMH | last post by:
I am in the process of converting all HTML documents, including many dynamic/interactive documents, to XHTML documents (because I want to incorporate SVG and MathML, among other things). I am having a problem converting document.write() statements which are not allowed in XHTML documents to statements which create the DOM nodes/elements dynamically within script elements.
0
8227
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...
1
8326
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
7150
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...
1
6106
isladogs
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...
0
4074
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...
0
4164
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2602
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
1
1778
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1473
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.