XHTML 2.0 Troubleshoot

Kerberos (3)

Usenet Archive
Joined
Oct 23, 2004
Messages
8
Reaction score
0
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,
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
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.
 

Richard Tobin

Usenet Archive
Joined
Jan 6, 2000
Messages
4,251
Reaction score
0
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
 

Edwin Dankert

Usenet Archive
Joined
Nov 20, 2002
Messages
30
Reaction score
0
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
 

Kerberos (3)

Usenet Archive
Joined
Oct 23, 2004
Messages
8
Reaction score
0
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=" <h>Hello!</h> </body> </html>

Should we wait to learn XHTML2?
 

Andy Dingley

Usenet Archive
Joined
Feb 23, 2000
Messages
3,303
Reaction score
0
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.
 

Bjoern Hoehrmann

Usenet Archive
Joined
Aug 15, 2000
Messages
719
Reaction score
0
* 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

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top