[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Structured Attributes

  • From: "Bent Rasmussen" <runnable@h...>
  • To: xml-dev@x...
  • Date: Sun, 05 Mar 2000 20:20:25 CET

structured attributes definition

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@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.