XHTML 2.0 Troubleshoot

K

Kerberos

I am learning XHTML 2.0, and I have tried to validade the example of XHTML
2.0 page given on the W3C eBook, but it reports errors :'(

Here's the code:

<?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"<head>
<title>Virtual Library</title>
</head>
<body>
<p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>
</body>
</html>

I tried this validator: http://validator.w3.org
Do you know where the problem is?
Thanks,
 
M

Martin Honnen

Kerberos said:
I am learning XHTML 2.0, and I have tried to validade the example of
XHTML 2.0 page given on the W3C eBook, but it reports errors :'(

<?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"

Which errors do you get? I am not sure that validator has support for
XHTML 2.0 at all as XHTML 2.0 is still under development.
 
R

Richard Tobin

Kerberos said:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN" "TBD">
^^^

Unless the validator recognises the public id, you need to put a
real URL in there.

-- Richard
 
E

Edwin Dankert

The online Validator does not seem to support XHTML 2.0
(although this is not very clear reading the W3C web-site).

I had a look at the specification and there seems to be
'only' a RelaxNG schema defined for XHTML 2.0 at the moment.

So if you really want to validate your XHTML 2.0 documents,
you'll have to use a RelaxNG validator (Jing [1]) and use
the RelaxNG definition document [2] and the modules [3] to
validate your documents ...

Regards,
Edwin

[1] http://www.thaiopensource.com/relaxng/jing.html
[2] http://www.w3.org/TR/xhtml2/xhtml20_relax.html
[3] http://www.w3.org/TR/xhtml2/relax_module_defs.html
 
K

Kerberos

I'm learning XHTML2, but...
A lot of features don't seem to work.
If I try for instance tags like <address>, <h>, etc...
they don't work on regular browsers...

Here's a sample:

<?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"<head>
<title>Virtual Library</title>
</head>
<body>
<p>Moved to <a href="http://vlib.org/">vlib.org</a>.</p>
<p><address href="mailto:[email protected]">Webmaster</address></p>
<h>Hello!</h>
</body>
</html>

Should we wait to learn XHTML2?
 
A

Andy Dingley

I'm learning XHTML2,

Why ? There is absolutely no point in trying to learn XHTML 2.
It's arguable as to whether there is even much point for experts to be
working with it.

If you want to learn and use XHTML, then use XHTML 1.0 Transitional.
There's no point in using the others and 1.1 or 2 are especially
problematic.

c.i.w.a.h is probably a better newsgroup to discuss HTML & XHTML. Most
of the regulars there still prefer HTML 4.01 and have a considerable
dislike of any XHTML.
 
B

Bjoern Hoehrmann

* Kerberos wrote in comp.text.xml:
I am learning XHTML 2.0, and I have tried to validade the example
of XHTML 2.0 page given on the W3C eBook, but it reports errors :'(

The W3C Markup Validator does not support XHTML 2.0. It is currently
only able to validate documents using DTDs and the HTML Working Group
has so far not provided a DTD for XHTML 2.0, it is in fact unlikely
that it will as certain XHTML 2.0 features do not work well with DTDs.

Also note that XHTML 2.0 is currently a Working Draft which means
there is still a lot of work to do before the W3C considers it mature
enough to call for implementations. It is unlikely that the W3C Markup
Validator will have meaningful XHTML 2.0 support before XHTML 2.0 is
a Recommendation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top