W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

Re: redundant mixed="true" required?

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Mon, 26 Aug 2002 20:35:54 +0900 (JST)
Message-Id: <20020826.203554.78714882.mimasa@w3.org>
To: xmlschema-dev@w3.org

Hello Eddie, Henry,

Thank you very much for your explanations.

Eddie Robertsson <erobertsson@allette.com.au> wrote:

> >MSV (20020414), Xerces-J 2.0.2 and XML Spy 4.4 reported no problem,
> >but XSV (online version, 1.203.2.47.2.4.2.11/1.106.2.25.2.3) complained
> >like this:
> >
> >    Invalid per cvc-complex-type.1.2.3: text not allowed: | ccc|
> >
> I tested this with MSXML SP1 as well and it also reports this as an 
> error.

Hmm ... that's a bad news.  I need to write a schema which could
somehow work with various XML Schema processors ... actually
I was writing an XML Schema for XHTML 1.0 Strict, and encountered
this problem.  An early version is available at:

    http://www.w3.org/People/mimasa/test/schemas/SCHEMA/xhtml1-strict.xsd

If I use 'redundant' definitions, it seems to work with XSV, Xerces-J
and XML Spy.  If you replace fixed="preserve" with default="preserve"
(for xml:space), it should also work with MSV.  I hope it's not too
bad, and any feedback for improvement is most welcome.

Thanks,
-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Monday, 26 August 2002 07:35:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT