First, my apologies if this is the wrong place to post this question.
I am hoping that, since XHTML2 and Relax NG are such good friends,
I've picked the correct friend to approach. [wink]

I'm trying to get started on writing and validating XHTML2.  I want to
start with the simplest possible example, which I found from a rather
authoritative source:

  http://www.w3.org/2005/Talks/05-steven-xtech/
  "A Simple Example"

It looks like this (except the part I snipped in the <p>):

<html xmlns="http://www.w3.org/2002/06/xhtml2/" xml:lang="en">
  <head>
    <title>Virtual Library</title>
  </head>
  <body>
    <p>Snip.</p>
  </body>
</html>

I'm trying now to validate.  For the schema, I downloaded the archive
from the W3C working draft URL.

For validation,  I first used oXygen.  It tells me that the <html>
element is missing a required attribute:

SystemID: /Users/paul/tmp/pipeline/index.html
Location: 3:62
Description: required attributes missing

Next I tried libxml2:

xmllint --noout --relaxng xhtml2-20050527/RELAXNG/xhtml2.rng index.html
Element html failed to validate content
index.html fails to validate

Does anyone know a combination of:

(a) RNG schema files
(b) sample document, and
(c) parser/validator

...that is known to work?






YAHOO! GROUPS LINKS




Reply via email to