Re: XPath Data Model proposal

Norman Walsh scripsit:

> What do you mean? Are you asking that xsi:type attributes be used even
> when documents aren't (WXS) schema validated?

Yes, that is just what I mean.  For example, a document with a DTD could
have xsi:type attributes that are #FIXED, in which case the XPath DM would
be able to process these documents as containing typed data, despite the
absence of a PSVI.  Alternatively, explicit xsi:type attributes could
be inserted either by transformation or by the originating process.

> | In addition, an xdt:attributeTypes attribute would be a Good Thing:
> | this would have list-of-QName type, and would alternate an attribute name
> | with its type.
> 
> Where would this appear and what function would it serve?

This would appear on an element and would provide the types of other attributes
of this element:

	<foo bar="32" baz="94.44"
		xdt:attributeTypes="bar xsd:integer baz xsd:double"/>

Again this could be defaulted from the DTD or inserted by transformation.

These two features, plus direct recognition of xsi:nil, would enable an
Infoset-only document to provide all the same information to the DM that
a PSVI-ed document would.

-- 
John Cowan  jcowan@reutershealth.com  www.reutershealth.com  www.ccil.org/~cowan
Assent may be registered by a signature, a handshake, or a click of a computer
mouse transmitted across the invisible ether of the Internet. Formality
is not a requisite; any sign, symbol or action, or even willful inaction,
as long as it is unequivocally referable to the promise, may create a contract.
       --_Specht v. Netscape_

Received on Thursday, 5 June 2003 11:53:25 UTC