Re: keyrefs

Hi Henry,

> I'm all in favour of exploring XML representations of the PSVI (see
> e.g. [1]), but simply adding attributes to an XML instance will never
> achieve this comprehensively, because you can only apply decoration to
> the _elements_ of the instance.  The attributes are left out, and
> that's not acceptable.

Sure, I completely agree with you that this is not a comprehensive solution to
get access to a "simple" PSVI through the XML instance document. I was just
thinking that it might work as a starting point for the people interested in
exploring this further (I think it was Eric who started on the idea). As for not
being able to express the PSVI for attributes I think one suggestion was to add
further attributes with PSVI information. For example, the instance

<Person name="Eddie"/>

could be something like:

<Person name="Eddie" name.attType="xs:string" elType="personType">

where the attribute name is used as a prefix (before the ".") and then a keyword
(for example attType) would describe a PSVI item.
Sure, you can't express a complete PSVI this way but I don't think that's the
point. For me, for example, I've been playing around with integrating Schematron
with XML Schemas and it's been work very well when the Schematron rules are
declared on element declarations. However, sometimes it would be very useful to
apply a Schematron rule on all elements that have certain complexType
independent on the actual name of the element. Using Francis' script I will get
this part of the PSVI exposed in the instance document and hence I'll be able to
apply the Schematron rule on a type basis instead of on the element basis. In
this case I'm not interested in a complete PSVI and in fact the only thing I
need is what type an element has. I guess what I'm trying to say is that
depending on the usecase a very simple PSVI like this might be enough.

Cheers,
/Eddie

> ht
>
> [1] http://www.w3.org/2001/05/serialized-infoset-schema.html
> --
>   Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
>           W3C Fellow 1999--2001, part-time member of W3C Team
>      2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
>             Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
>                      URL: http://www.ltg.ed.ac.uk/~ht/

Received on Monday, 12 November 2001 18:24:02 UTC