Validating XHTML 2.0

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ney André de Mello Zunino

    Validating XHTML 2.0

    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
  • Steve Fulton

    #2
    Re: Validating XHTML 2.0

    Ney André de Mello Zunino wrote:
    [color=blue]
    > 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?[/color]

    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

    Comment

    • Martin Honnen

      #3
      Re: Validating XHTML 2.0



      Ney André de Mello Zunino wrote:

      [color=blue]
      > 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?[/color]

      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

      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:schemaLocat ion="http://www.w3.org/2002/06/xhtml2 TBD"[color=blue]
      >[/color]

      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

      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

      doesn't provide a schema.

      The only schema they provide so far is a RELAX NG schema in appendix

      thus you should hopefully be able to validate against that schema with a
      RELAX NG schema validator.

      Google

      finds some so maybe you can give them a try.

      --

      Martin Honnen


      Comment

      • Wired Earp

        #4
        Re: Validating XHTML 2.0

        Ney André de Mello Zunino wrote:
        [color=blue]
        > 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?[/color]

        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

        Comment

        Working...