XHTML 2.0 Troubleshoot

Discussion in 'XML' started by Kerberos, Nov 1, 2004.

  1. Kerberos

    Kerberos Guest

    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,

    --
    K.

    http://www.osresources.com/
     
    Kerberos, Nov 1, 2004
    #1
    1. Advertising

  2. 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/
     
    Martin Honnen, Nov 1, 2004
    #2
    1. Advertising

  3. 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
     
    Richard Tobin, Nov 1, 2004
    #3
  4. 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
     
    Edwin Dankert, Nov 1, 2004
    #4
  5. Kerberos

    Kerberos Guest

    Re: XHTML 2.0 not fully implemented?

    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:">Webmaster</address></p>
    <h>Hello!</h>
    </body>
    </html>

    Should we wait to learn XHTML2?

    --
    K.

    http://www.osresources.com/
     
    Kerberos, Nov 1, 2004
    #5
  6. Kerberos

    Andy Dingley Guest

    Re: XHTML 2.0 not fully implemented?

    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
     
    Andy Dingley, Nov 2, 2004
    #6
  7. * 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.
     
    Bjoern Hoehrmann, Nov 2, 2004
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charax
    Replies:
    5
    Views:
    490
    David
    Mar 5, 2004
  2. darrel
    Replies:
    0
    Views:
    475
    darrel
    Dec 15, 2005
  3. VB Programmer

    How troubleshoot detailsview edit?

    VB Programmer, Jan 15, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    515
    VB Programmer
    Jan 15, 2006
  4. =?Utf-8?B?bWFya2VsYw==?=
    Replies:
    2
    Views:
    1,064
    =?Utf-8?B?bWFya2VsYw==?=
    Jan 31, 2006
  5. BK
    Replies:
    1
    Views:
    356
    Vjekoslav Begovic
    Sep 4, 2003
Loading...

Share This Page