Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-133

Attributes defined on odata elements should be in empty namespace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: ATOM Format, CSDL XML
    • Labels:
      None
    • Environment:

      [Proposed]

      Description

      Attributes of elements defined within the odata metadata namespace should not be defined in the empty namespace.

      It is common practice, when defining an element and attributes within that element, not to namespace the attributes. For example, the <atom:link> element defines attributes for rel, href, title and so forth. These attributes are not in the atom namespace, because atom defines the element. This allows the link element to be written without having to namespace qualify all of the attributes, as:
      <atom:link rel="..." href="..." title="..."/>

      Note that attributes do not inherit the namespace of their element (or any other implicit namespace); unprefixed attributes always live in an empty namespace.

      Currently , a number of elements defined within the odata namespace have attributes that are (erroneously) defined within that namespace. This would require each attribute to be namespace qualified, as in:
      <edm:Property edm:Name="FirstName" edm:Type="Edm.String"/>

      This was not the intention, and not how the examples are shown.

        Attachments

          Activity

            People

            • Assignee:
              martinzurmuehl Martin Zurmuehl
              Reporter:
              mikep Michael Pizzo (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: