This is an XML Schema for REFEDS-defined metadata extensions.

Any attributes defined within the REFEDS namespace should be added to this schema. 

An XSD for download is available here: refeds_metadata_extension_schema.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://refeds.org/metadata"
  elementFormDefault="qualified"
  attributeFormDefault="unqualified"
  blockDefault="substitution"
  version="2.0">
  <xs:annotation>
    <xs:documentation>
      Document title: Schema for REFEDS metadata extensions
      Document identifier: Metadata Extension Schema
      Location: "https://wiki.refeds.org/display/stan/metadata+extension+schema"
      Revision history:
      V1.0 (29 March 2016):
      Initial version with contactType attribute.
    </xs:documentation>
  </xs:annotation>
  <xs:attribute name="contactType" type="xs:anyURI"/>
</xs:schema>

  • No labels

5 Comments

  1. Doesn't the <xs:attribute> element need a use XML attribute?

    <xs:attribute name="contactType" type="xs:anyURI" use="optional"/>

     

    1. Hi Tom, 

      Please could you explain a bit why you believe it is necessary? The baseline for this extension schema was done by Incommon https://spaces.internet2.edu/display/InCFederation/Metadata+Extension+Schema and it's unclear why a "use" attribute should be needed here but not there. It would be good to have both schemas aligned (smile)

      Cheers 

      1. Please could you explain a bit why you believe it is necessary?

        We discussed this on the InCommon Ops Advisory Group call this morning. It is not necessary. The use XML attribute defaults to use="optional" so adding it to the schema simply makes it explicit (and self-documenting).

        1. Thanks for checking. We won't add here either then. I've added an xsd for download.

  2. Can you please create an XML Schema document with an .xsd extension? Copy-and-pasting an XML document is error prone.