← Prev in month ← Prev in thread
Next in thread → Next in month →

[OASIS Issue Tracker] (ODATA-1435) Conditionally add an element to a collection

From
OASIS Issues Tracker <>
Date
2021-04-20T14:03:19+00:00
ID
Thread
[OASIS Issue Tracker] (ODATA-1435) Conditionally add an element to a collection
Heiko Theissen created ODATA-1435:
-------------------------------------

             Summary: Conditionally add an element to a collection
                 Key: ODATA-1435
                 URL: https://issues.oasis-open.org/browse/ODATA-1435
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
          Components: CSDL JSON , CSDL XML
    Affects Versions: V4.01_OS
         Environment: Proposed
            Reporter: Heiko Theissen


[OData-CSDL, section 14.4.7|https://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/odata-csdl-xml-v4.01.html#sec_IfThenElse] allows {{If}} without third ("else") child only as a direct descendant of a {{Collection}}. But the following would also make sense:
{code:xml}
<Collection>
 <If>
  <Path>IsLTR</Path>
  <String>margin-left</String>
  <If>
   <Path>IsRTL</Path>
   <String>margin-right</String>
  </If>
 </If>
</Collection>
{code}
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}}.



--
This message was sent by Atlassian Jira
(v8.3.3#803004)
← Prev in month ← Prev in thread
Next in thread → Next in month →