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

Re: assigning schema to appInfo elements

From: Eddie Robertsson <eddie@allette.com.au>
Date: Wed, 07 Mar 2001 11:53:26 +1100
Message-ID: <3AA58686.44D8A664@allette.com.au>
To: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>
CC: Matt Brown <matt@avolent.com>, "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
"Henry S. Thompson" wrote:

> When I tried your example, I had to fix two problems:
> 1) &nbsp; throughout, not valid UTF-8 (that's probably courtesy of
>     your mailer);

Sorry about this. In the future I'll just post a link to the file instead.

> 2) XSV DTD-validates all schemas, and this was barfing on Test.xsd --
> didn't you see the error message?

Still struggling with the error messages. I understod that something was failing
in test.xsd I just didn't realise what. I just copied the example you posted and
didn't realise I needed to declare the extra attributes. Thanks for that!

 <!ENTITY % appinfoAttrs 'xsi:schemaLocation CDATA #IMPLIED
                           xmlns:xsi CDATA #IMPLIED'>

Sorry, to be a pain about this I just really want to understand how this works
and while the above fixed my problem I still can't get XSV to validate the data
in appinfo properly. In the file part.xsd [1] I have specified the element
allowed in the xsd:appinfo element (sch:pattern). However if I change the
test.xsd [2] schema so that the xsd:appinfo element contain the element sch:p
instead, XSV still validates this without error. Am I doing something wrong
here? ...again ;-(


[1] http://www.allette.com.au/Demo/XSV/Test/part.xsd
[2] http://www.allette.com.au/Demo/XSV/Test/test.xsd
Received on Tuesday, 6 March 2001 19:54:36 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC