W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2011

Re: ANN: Algorithm for Merging a simpleType Dependency Chain

From: Mukul Gandhi <gandhi.mukul@gmail.com>
Date: Sun, 1 May 2011 15:19:44 +0530
Message-ID: <BANLkTikqs0TOzkD0N6rzFTk4ozR1tJYuuQ@mail.gmail.com>
To: "Costello, Roger L." <costello@mitre.org>
Cc: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Hi Roger,
    The thing which confuses me, within your article is that you use
the terminology, xsd:value (i.e the component "value" is in XML Schema
namespace, whereas in XML Schema language we currently don't have any
component named "value" within the xsd: namespace). So how would we
process such a component with a compliant XML Schema processor?

May be you've assumed that "if the component xsd:value existed -- even
if it doesn't exist currently".

There's another observation I could make about this topic (as follows),

It seems you're trying to create a single (a kind of monolithic, if we
can say so) type definition from an existing chain of simpleType
definitions. In this newly rendered simpleType component, all the
constraints of the participating types are present. This seems to me
like an opposite of re-factoring. I doubt if this approach may find
general purpose uses.

On Sun, May 1, 2011 at 2:45 PM, Costello, Roger L. <costello@mitre.org> wrote:
> Hi Mukul,
>
> Recall the purpose of my algorithm: create a single, standalone rendering of a simpleType.
>
> By sticking to the XML Schema representation of simpleTypes it is impossible to create a single, standalone rendering of a simpleType. Why? Because of the pattern facet - pattern facets within a simpleType are or-ed together whereas pattern facets across a dependency chain are and-ed together.
>
> Therefore, I must create my own rendering. In my rendering all facets are and-ed together. Thus, I rendered enumeration facets as shown below (thanks for Michael Kay for this rendering of enumeration).
>
> /Roger





-- 
Regards,
Mukul Gandhi
Received on Sunday, 1 May 2011 09:50:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 1 May 2011 09:50:32 GMT