W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2010

Subject: XHTMLT Modularization 1.1 - Second Edition Example

From: Robert Leif <rleif@rleif.com>
Date: Wed, 5 May 2010 09:33:46 -0700
To: <www-html-editor@w3.org>
Message-ID: <028801caec70$be665430$3b32fc90$@rleif.com>
Editor:

Subject: XHTMLT Modularization 1.1 - Second Edition Example

 

I believe that your modular XHTML approach to the creation of web documents
is very important. It could be the basis of creating truly portable
applications including an office suite for html 5.

 

I have tried to validate the schemas listed in XHTMLT Modularization 1.1 -
Second Edition, 

W3C Proposed Edited Recommendation 14 April 2010, B.4.1. Creating a simple
Document Type. I started with
http://www.w3.org/MarkUp/SCHEMA/examples/simpleml-module-1.xsd. I downloaded
the schemas from the ZIP archive. Since validation errors appeared in both
XMLSpy and oXygen, I tried to trace back the source of the errors.
Unfortunately, this is quite difficult because of the use of unqualified
declarations, absence of prefixes.  

When I attempted to validate simpleml-1_0, the error message from oXygen for
was:

 

SystemID: http://www.w3.org/MarkUp/SCHEMA/xhtml-basic10-modules-1.xsd

Engine name: Xerces

Severity: error

Description: derivation-ok-restriction.2.1.2: Error for type
'xhtml.version.attrib'.  The attribute use 'version' in this type has type
'FPI', which is not validly derived from 'CDATA', the type of the matching
attribute use in the base type.

Start location: 121:42

End location: 121:53

URL: http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction

 

SystemID: http://www.w3.org/MarkUp/SCHEMA/xhtml-basic10-modules-1.xsd

Engine name: Xerces

Severity: error

Description: src-redefine.7.2.2: AttributeGroup 'xhtml.version.attrib' does
not properly restrict the attributeGroup it redefines; constraint violated:
'derivation-ok-restriction.2.1.2'.

Start location: 121:9

End location: 121:21

URL: http://www.w3.org/TR/xmlschema-1/#src-redefine

 

The error message from XMLSpy for 

simpleml1 stated that xhtml-basic10-modules-1.xsd was not valid. I believe a
simple make file might help. The location of xhtml.version.attrib is not
obvious.

The schema doesn't appear to be valid by itself (as a part of another
schema, it might still be OK).

                File
http://www.w3.org/MarkUp/SCHEMA/xhtml-basic10-modules-1.xsd is not valid.

                                Redefining attribute group definition
'xhtml.version.attrib' must be a valid restriction of its redefined
counterpart 'xhtml.version.attrib'.

                                                Error location: xs:schema /
xs:redefine / xs:attributeGroup

                                                Details

 
derivation-ok-restriction.2.1.2: The type definition 'FPI' of attribute
declaration 'version' is not validly derived from type definition 'CDATA'.

 
src-redefine.7.2.2: Redefining attribute group definition
'xhtml.version.attrib' must be a valid restriction of its redefined
counterpart 'xhtml.version.attrib'.

redefine

A comment in Section 4.2.4 of W3C XML Schema Definition Language (XSD) 1.1
Part 1: Structures, W3C Working Draft 3 December 2009brings into question
the use of the redefine element.

Section 4.2.4 Including modified component definitions (<redefine>)

Note: The redefinition feature described in the remainder of this section is
.deprecated. and may be removed from future versions of this specification.

Schema authors are encouraged to avoid its use in cases where
interoperability or compatibility with later versions of this specification
are important.

Editorial Note: Priority Feedback Request

The Working Group requests feedback from readers, schema authors,
implementers, and other users of this specification as to the desirability
of retaining, removing, deprecating, or not deprecating the use of
<redefine>. Since the <override> facility provides similar functionality but
does not require a restriction or extension relation between the new and the
old definitions of redefined components, the Working Group is particularly
interested in learning whether users of this specification find that
requirement useful or not.

 

My long-term interest is to use XHTML 5 that includes forms with one of my
CytometryML schemas
(http://www.newportinstruments.com/cytometryml/cytometryml.htm) to create
strongly typed forms. The use of CSS for formatting will be simplified by
having the HTML and CytometryML schemas independent of each other. This
would permit the elements of a complexType to be used in a sentence
contained in a <p> element, which could include a class attribute.  Could
something like defaultOpenContent  be included in an html element? 

 

<defaultOpenContent

                                mode="interleave">

                                <any />

</defaultOpenContent>

 

Thank you.

Yours respectfully,

Robert C. Leif, Ph.D.

Vice President

Newport Instruments

5648 Toyon Road

San Diego, CA 92115  Tel. (619)582-0437

Email rleif@rleif.com

Web : www.newportinstruments.com
Received on Wednesday, 5 May 2010 16:34:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:18:00 GMT