473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Validating XHTML 2.0

Hello.

I decided to start experimenting with XHTML 2.0, having never messed
with any of its previous versions, except for a quick look at XHTML 1.0
when it came out. When I tried to validate the test document I was
working on, I noticed that the W3C's validator [1] does not yet deal
with XHTML 2.0 files. Does anybody know of a validator that does? Also,
does anybody have any information on when W3C will be updating their
validator in order to include support for XHTML 2.0?

Thank you,

--
Ney André de Mello Zunino
Jul 20 '05 #1
3 4077
Ney André de Mello Zunino wrote:
I decided to start experimenting with XHTML 2.0, having never messed
with any of its previous versions, except for a quick look at XHTML 1.0
when it came out. When I tried to validate the test document I was
working on, I noticed that the W3C's validator [1] does not yet deal
with XHTML 2.0 files. Does anybody know of a validator that does? Also,
does anybody have any information on when W3C will be updating their
validator in order to include support for XHTML 2.0?


There is no XHTML 2.0. There is a Working Draft for a proposed XHTML
2.0 <URL:http://www.w3.org/TR/xhtml2>, which states, "This document
.... should in no way be considered stable, and should not be
normatively referenced for any purposes whatsoever."

--
Steve

Common sense is the collection of prejudices acquired by age eighteen.
-Albert Einstein
Jul 20 '05 #2


Ney André de Mello Zunino wrote:

I decided to start experimenting with XHTML 2.0, having never messed
with any of its previous versions, except for a quick look at XHTML 1.0
when it came out. When I tried to validate the test document I was
working on, I noticed that the W3C's validator [1] does not yet deal
with XHTML 2.0 files. Does anybody know of a validator that does? Also,
does anybody have any information on when W3C will be updating their
validator in order to include support for XHTML 2.0?
I don't know, looking at the latest working draft there is neither a
system identifier for the DOCTYPE declaration defined nor an XML schema
location, see
http://www.w3.org/TR/2004/WD-xhtml2-...html#s_conform
which so far says

Here is an example of an XHTML 2.0 document.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN"
"TBD">
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xml:lang="en"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2002/06/xhtml2 TBD"


as long as those TBDs are not replaced with URLs to a DTD or a schema
there is nothing a validator could validate against.

And as the appendix
http://www.w3.org/TR/2004/WD-xhtml2-...#a_xhtml20_dtd
doesn't list a DTD there is indeed no way to validate with the W3C
validator.

The same for any W3C XML schema validator, the appendix
http://www.w3.org/TR/2004/WD-xhtml2-...xhtml20_schema
doesn't provide a schema.

The only schema they provide so far is a RELAX NG schema in appendix
http://www.w3.org/TR/2004/WD-xhtml2-...html20_relaxng
thus you should hopefully be able to validate against that schema with a
RELAX NG schema validator.

Google
http://www.google.com/search?hl=en&i...=Google+Search
finds some so maybe you can give them a try.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #3
Ney André de Mello Zunino wrote:
I decided to start experimenting with XHTML 2.0, having never messed
with any of its previous versions, except for a quick look at XHTML 1.0
when it came out. When I tried to validate the test document I was
working on, I noticed that the W3C's validator [1] does not yet deal
with XHTML 2.0 files. Does anybody know of a validator that does? Also,
does anybody have any information on when W3C will be updating their
validator in order to include support for XHTML 2.0?


The XHTML2.0 specification appendix B and C provides full Relax NG schema
definitions for building your own, probably Java based, validator. A hairy
exersise, but the W3C validator will not be updated until the spec has
stabilized. Since no current browser supports XHTML2.0 natively, you may
also need an XSLT parser to output regular XHTML [or HTML for browsers that
aren't current]. You can get advice on both accounts from the newsgroup
over at comp.text.xml
--
Wired Earp
Wunderbyte
Jul 20 '05 #4

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

Similar topics

30
by: Toni Mcintyre | last post by:
i'm having 2 problems with the http://validator.w3.org 1. if i have: <meta http-equiv="Content-Script-Type" content="text/javascript"> then why do i need <script type=text/javascript>...
6
by: mike | last post by:
Hello, After trying to validate this page for a couple of days now I was wondering if someone might be able to help me out. Below is a list of snippets where I am having the errors. 1. Line 334,...
0
by: Lachlan Hunt | last post by:
Hi everyone, I've just discovered a registry hack to get around the Windows XP SP2 security bug that prevents files being uploaded as text/html, and thus unable to validate local html files using...
2
by: and | last post by:
Hi I have been validating all day most things are cool but I cant get by this problem. One I have listed the script (JAVASCRIPT ) in all the right placesnot a prob but the validator insists...
3
by: jon | last post by:
Hello, I am new to trying to validate this xhtml so I will try to explain as best I can. Ok, I currently have a draft html file which I am trying to validate to a xhtml. Right now I have a couple...
2
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...
2
by: PapaRandy | last post by:
Hello, I am trying to validate the following .py webpage as HTML (through W3C). I put: ----------------------------------------------------------------------------- print "Content-type:...
1
mickey0
by: mickey0 | last post by:
hello, validating this file on w3c I have many error: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
76
by: Michael Stemper | last post by:
The W3C Validator is a great help, as far as it goes. However, I'm looking for something stricter. My coding style does not allow for implicit termination of an element; my intention and desire is...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.