--- In [email protected], John Cowan <[EMAIL PROTECTED]> wrote:
>
> zopepaul scripsit:
>
> > I'm trying now to validate.  For the schema, I downloaded the archive
> > from the W3C working draft URL.
>
> Unfortunately, the current XHTML2 schema *requires* the presence of
> an xsi:schemaLocation attribute in the html element containing one
> or more pairs of URIs, space-separated.
>
> > For validation,  I first used oXygen.  It tells me that the <html>
> > element is missing a required attribute:
>
> Rightly so.
>
> > SystemID: /Users/paul/tmp/pipeline/index.html
> > Location: 3:62
> > Description: required attributes missing
>
> Not the most informative error message.
>
> > 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
>
> Ditto.
>
> > Does anyone know a combination of:
> >
> > (a) RNG schema files
> > (b) sample document, and
> > (c) parser/validator
> >
> > ...that is known to work?
>
> Well, you can alter either the schema files or the sample document.
> In addition, the schema files that I downloaded from the 27 May 2005
> draft have the wrong namespace name: the final / is missing.
> After fixing that (in xhtml2.rng) and then adding these two
> attributes to the html element in the instance:
>
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://example.com http://example.com"
>
> jing validated everything correctly.

Thanks a bunch, John.  After fiddling with the URLs in the
xsi:schemaLocation, all worked fine.

--Paul






SPONSORED LINKS
Xml schema Computer internet security Xml
Computer internet business Xml format Xml document


YAHOO! GROUPS LINKS




Reply via email to