473,414 Members | 1,675 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,414 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 4081
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.