W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

requirements for XML Schema 1.1

From: Moten, Rod <RMOTEN@bloomberg.net>
Date: 26 Jul 2005 07:46:29 -0600
Message-Id: <3D293CE4B6B75A4F9E55E774E622BE7209D17A@ny2532.corp.bloomberg.com>
To: <www-xml-schema-comments@w3.org>
I am writing to propose two requirements

1. A removal of the constraint that requires elements with the same name
to have the same type.
2. A concrete syntax for XML Schema.

 

One problem with XML Schema is the constraint that if two elements with
same name are in the same set of particles of a model group, then the
elements have the same type. The problem with this constraint is that
you cannot ensure that different occurrences have different structures.
Suppose you want an XML schema that has the following as an instance
document.

 

<?xml version="1.0" encoding="UTF-8"?> 
<semicolon>

<b><x/><y/></b>
<b><g/></b>

</semicolon>

 

However, you did not want the following as an instance document.

<?xml version="1.0" encoding="UTF-8"?>

<semicolon>

<b><g/></b>

<b><x/><y/></b>
</semicolon> 

 

If I understand the semantics of XML Schema correctly, you cannot define
a model group that only allows the first to be an instance document, but
not the second.

However, I can define a context free grammar that would accept the first
and reject the second. 

 

A -> B semicolon B'

B -> b(x, y)

B' -> b (g)

 

 

Concrete Syntax for XML Schema

------------------------------------------------

It would be much easier to develop XML Schema if there was a concrete
syntax for XML Schema. XML Schema 1.1 should also include a concrete
syntax. Vendors can develop translators from the concrete syntax to raw
XML Schema. 

 
Received on Tuesday, 26 July 2005 13:48:06 GMT

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