Re: XSV Crash on XHTML Schema

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 UTC