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

Conditionally add an element to a collection

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: V4.01_OS
    • Fix Version/s: V4.02_WD01
    • Component/s: CSDL JSON , CSDL XML
    • Labels:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      There is one exception to this rule: if and only if the if-then-else expression is a descendant of a collection expression with only If, And, Or and Not expressions intervening, the third ...

      Show
      There is one exception to this rule: if and only if the if-then-else expression is a descendant of a collection expression with only If , And , Or and Not expressions intervening , the third ...

      Description

      OData-CSDL, section 14.4.7 allows If without third ("else") child only as a direct descendant of a Collection. But the following would also make sense:

      <Collection>
       <If>
        <Path>IsLTR</Path>
        <String>margin-left</String>
        <If>
         <Path>IsRTL</Path>
         <String>margin-right</String>
        </If>
       </If>
      </Collection>
      

      This would add "margin-left" or "margin-right" to the collection for left-to-right and right-to-left scripts, respectively, but add nothing, e.g., for top-to-bottom scripts. The If without "else" is embedded in another If.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              heiko.theissen Heiko Theissen
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: