[
Lists Home |
Date Index |
Thread Index
]
- From: "Bent Rasmussen" <runnable@hotmail.com>
- To: xml-dev@xml.org
- Date: Sun, 05 Mar 2000 20:20:25 CET
Attribute Organization
This is an alteration of Henry Thompson's proposed syntax for structured
attributes. I have a similar idea, but as far as I remember this is a
different syntax.
Syntax
To introduce structured attributes, one could make an element like this
<.>
...
</.>
which would serve as a collection of attribute structures for the context
element. Semantically the "." element would mean attribute container. This
would look like,
<context>
<.>
<attribute>
...structure...
</attribute>
<attribute>
...structure...
</attribute>
</.>
...content...
</context>
So the immediate children of the "." element would be attributes.
Attributes Organization, an Example,
<document>
<.>
<copyright>
<person>
<given>Henry</given>
<family>Thompson</family>
</person>
</copyright>
</.>
<section>
<.>
<subjects>
<subject>XSchema, the making of</subject>
<subject>...</subject>
<subject>...</subject>
</subjects>
<terminology>
<term>
<name>Something</name>
<definition>To explain.</definition>
</term>
</terminology>
</.>
<paragraph>Essentially...</paragraph>
</section>
</document>
Perspective
I've been pretty ignorant to schema and query considerations, but it just
seems like a nice syntax. In constructing my own document type it seemed to
me that I often wanted to express metadata about the element content, but
that it it would be less elegant to express it like this,
<element>
<meta>
...
</meta>
<content>
...
</content>
</element>
So,
Perhaps my approach is totally broken, but for myself it seems intuitive and
elegant.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************
|