W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2001

Re: XSV Crash on XHTML Schema

From: Eddie Robertsson <eddie@allette.com.au>
Date: Thu, 08 Feb 2001 15:54:38 +1100
Message-ID: <3A82268E.B469125B@allette.com.au>
To: "Sean B. Palmer" <sean@mysterylights.com>, "Henry S. Thompson" <ht@cogsci.ed.ac.uk>, xmlschema-dev@w3.org, Rick Jelliffe <ricko@gate.sinica.edu.tw>
Eddie Robertsson wrote:

> "Sean B. Palmer" wrote:
>
> > Hi,
> > I just created an XML Schema for a simple subset of XHTML m12n [1], but XSV
> > throws up a very strange error [2]. It keeps saying that "html.content" and
> > "html.attlist" are undefined, when they clearly are, and it doesn't help
> > even if I change the group names being referenced.
> > Also, XSV doesn't seem to notice the <undefined/> element in the test XHTML
> > document [3], although that might be a consequence of it crashing out on
> > me.
>
> I had a look at the different schema documents involved and I found a couple of
> things that could cause your errors. The first thing I noticed (in xhtml.xsd
> and some others) was that you have elements inside your <documentation>
> element. I don't think you're allowed to have xml content within a
> <documentation> element but you can solve it by using the escaped '<'. E.g.
>
> <documentation>
>    <div xmlns="http://www.w3.org/1999/xhtml">
>    <h1>XHTML Simple 1.0 XML Schema</h1>
> </documentation>
>
> would become:
>
> <documentation>
>    &lt;div xmlns="http://www.w3.org/1999/xhtml">
>    &lt;h1>XHTML Simple 1.0 XML Schema&lt;/h1>
> </documentation>

Sorry, disregard what I wrote about the <documentation> element. Just checked the
spec. and the content of the <documentation> element is any* so you can put
whatever you want here. I got confused because XML Spy didn't like elements in the
<documentation> element.

Next time I'll check the specification first
/Eddie
Received on Wednesday, 7 February 2001 23:51:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:33 GMT