By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,632 Members | 1,425 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,632 IT Pros & Developers. It's quick & easy.

Validating XHTML 2.0

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a


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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.