W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2001

Re: what should I expect for validation of attributes of type QNa me?

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 24 Jan 2001 16:05:47 +0000
To: "Vun Kannon, David" <dvunkannon@kpmg.com>
Cc: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Message-ID: <f5br91t0wbo.fsf@cogsci.ed.ac.uk>
"Vun Kannon, David" <dvunkannon@kpmg.com> writes:

> > QNames as datatypes in ordinary documents (not XML Schema documents)
> > are just that, qualified names, and are simply constrained to have the
> > right form and to have an appropriate NS declaration in scope.
> > There's no implication that they 'refer' to schema components, or that
> > they should 'resolve' to anything.
> > 
> > ht
> Sadly, I'm not getting even that quality of validation, but I'll have to
> take that up with the vendor.
> I want not just the form of a QName, but the semantics of resolution as
> well. The "XMLSchemaResolvableQName" datatype.
> Or perhaps what I really want is an "onValidate" attribute via which I can
> specify code which will add my own stuff to the PSVI. Then I could write
> <attribute name="measure" type="QName" onValidate="my:resolveQName(this)"/>
> as well as many other things, of course. Sort of like a trigger function in
> a database. Or does this hook exist already?

In a way, yes:  you can add attributes of any name in any namespace
_other_ than http://www.w3.org/2000/10/XMLSchema to any declaration or 
definition in a schema, and that attribute (or rather a corresponding
information item) will be present in the PSVI, for
application-specific post-processing.  So you write not quite what you 
had above, but

<attribute name="measure" type="QName" my:onValidate="resolveQName(this)"/>

  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 Wednesday, 24 January 2001 11:05:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:54 UTC