eml packaging

Chad Berkley berkley at nceas.ucsb.edu
Thu May 30 08:35:20 PDT 2002


yeah, you're right.  I messed it up.  I changed it a bit so now the
references tag is in a different place.  I think this is better though.
The instance document will look like:

<AttributeContainer>
  <attribute id="1"/>
</AttributeContainer>

<attributeContainer>
  <attributeList id="2">
    <attribute id="3">
    ...
    </attribute>
    <attribute id="4">
    ...
    </attribute>
    <attribute>
      <refences>1</references>
    </attribute>
  </attributeList>
</attributeContainer>

The only problem with this is that it allows an attribute reference to
have an id.  I really don't think that this is that big of a deal.  the
id is optional.  This is a more elegant solution than

<attributeListContainer>
  <attributeContainer>
    <attribute id=1>...</attribute>
  </attributeContainer>
  <attributeContainer>
    <attribute id=2>...</attribute>
  </attributeContainer>
  <attributeContainer> 
    <attribute id=3>...</attribute>
  </attributeContainer>
</attributeListContainer>

What do you think?

chad

On Wed, 2002-05-29 at 16:43, Peter McCartney wrote:
> in eml-attribute.xsd - don't you mean to cast the element "attribute" that
> appears under the complex type "AttributeListContainer as
> AttributeContainer" instead of "AttributeType"? Otherwise, you dont get the
> chance to assign id's to the individual attribute definitions. Doing so
> results in an element named "attribute" that contains an element named
> "attribute" which was why i had struggled to come up with a different name
> for one of them in my sample file (i had used "attributeDefinition", not
> noticing we already had a element named that in the content model)
> 
> Or did mean for AttributeLists to only contain new attribute elements and
> never references to existing attributes?
> 
> Peter McCartney (peter.mccartney at asu.edu)
> Center for Environmental Studies
> Arizona State University
> 480-965-6791 
> 
> -----Original Message-----
> From: Chad Berkley [mailto:berkley at nceas.ucsb.edu]
> Sent: Wednesday, May 29, 2002 3:52 PM
> To: eml-dev at ecoinformatics.org
> Subject: eml packaging
> 
> 
> Hi,
> 
> I just checked in a bunch of changes to eml.  namely, I added the
> references element and an id attribute to each module for packaging
> purposes.  I have not added inlined elements for direct nesting (i.e. an
> attribute typed tag in eml-entity).  I will probably attempt this feat
> tomorrow.  Please take a look at what I have done and send me any
> feedback that you may have.
> 
> thanks,
> chad
> -- 
> -------------------------------
> Chad Berkley
> National Center for Ecological
> Analysis and Synthesis (NCEAS)
> 735 State St. Ste. 204
> Santa Barbara, CA 93101
> 805-892-2530
> berkley at nceas.ucsb.edu
> -------------------------------
> 
> _______________________________________________
> eml-dev mailing list
> eml-dev at ecoinformatics.org
> http://www.ecoinformatics.org/mailman/listinfo/eml-dev
-- 
-------------------------------
Chad Berkley
National Center for Ecological
Analysis and Synthesis (NCEAS)
735 State St. Ste. 204
Santa Barbara, CA 93101
805-892-2530
berkley at nceas.ucsb.edu
-------------------------------




More information about the Eml-dev mailing list