Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XHTML 2.0 Troubleshoot

Reply
Thread Tools

XHTML 2.0 Troubleshoot

 
 
Kerberos
Guest
Posts: n/a
 
      11-01-2004
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"
xmlnssi="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,

--
K.

http://www.osresources.com/
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      11-01-2004


Kerberos wrote:
> 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"


> I tried this validator: http://validator.w3.org


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.

--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
 
Richard Tobin
Guest
Posts: n/a
 
      11-01-2004
In article <>,
Kerberos <> wrote:

><!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
 
Reply With Quote
 
Edwin Dankert
Guest
Posts: n/a
 
      11-01-2004
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


 
Reply With Quote
 
Kerberos
Guest
Posts: n/a
 
      11-01-2004
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"
xmlnssi="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="private.php?do=newpm&u=">Webmaster</address></p>
<h>Hello!</h>
</body>
</html>

Should we wait to learn XHTML2?

--
K.

http://www.osresources.com/
 
Reply With Quote
 
Andy Dingley
Guest
Posts: n/a
 
      11-02-2004
On Mon, 01 Nov 2004 21:05:25 -0200, Kerberos <>
wrote:

>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.

--
Smert' spamionam
 
Reply With Quote
 
Bjoern Hoehrmann
Guest
Posts: n/a
 
      11-02-2004
* 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PSD to XHTML Conversion, PSD to HTML, Joomla, Drupal, WordpressConversion, PSD to XHTML CSS xhtml champs XML 0 08-02-2011 05:40 AM
PSD to XHTML Conversion, PSD to HTML, Joomla, Drupal, WordpressConversion, PSD to XHTML CSS xhtml champs C Programming 0 08-01-2011 06:29 AM
convert xhtml to another xhtml using xslt Usha2009 XML 0 12-20-2009 01:13 PM
Should I Convert Site To XHTML or XHTML mobile? chronos3d HTML 9 12-05-2006 04:46 PM
parse URL (href) from xhtml, xhtml -> text, for data hawat.thufir@gmail.com XML 7 02-08-2006 07:39 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57