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

Re: Access to Schema API information

From: Florent Georges <fgeorges@fgeorges.org>
Date: Tue, 22 May 2012 11:06:27 +0200
Message-ID: <CADyR_r2YbSxd0_HhU1mYot3xdYErrueRrBbmFFRSRHrgC2yRLA@mail.gmail.com>
To: Michael Kay <mike@saxonica.com>
Cc: w3c-xsl-query@w3.org, "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
On 22 May 2012 10:23, Michael Kay wrote:


> For example, there's no direct way to determine the members of a
> substitution group other that searching all element declarations to
> see if they belong. Saxon has this information internally, but the
> SCM properties don't expose it [...]

> I could extend the model to expose additional properties of objects,
> but that's starting to depart from being a completely
> standards-based interface.

  In that case, it seems reasonable to me to introduce a function in
the API to get the members of a substitution group.  Saxon can
implement it by using more internal infos it maintains, whilst others
might have to implement it more naively.


Florent Georges
Received on Tuesday, 22 May 2012 09:08:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:01 UTC