OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [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)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]