XML ATTRIBUTES : Are they attribute Names or Type Names?

David Rosenborg David.Rosenborg at xsse.se
Tue Sep 1 11:08:14 BST 1998


Yes, this is exactly what I'm aiming at.

Mark Tucker wrote:
> Hi David,
>         I'm not sure what you said about typenames and attribute
> names, but I wonder if it is this problem. XML ELEMENT names are
> confused about whether they are acting as programming language "type
> names", or as programming language "field names".


> <RECTANGLE>     -- type
>   <lower-left>          -- field
>       <POINT>           -- type
>           <x>3</x>      -- field
>           <y>4</y>
>       <POINT>
>   </lower-left>

In a strongly typed system you could also write it like this


And the fact that lower-left is of type point would be expressed
in the schema. I guess that architectural forms
provide the basic machinery to express these relations at the
XML level (that is structurally), but I would also like
to formally express the relations of types and names in the
application level with some schema.



David.Rosenborg at xsse.se                      OM Exchange Technology

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list