Jump to: navigation, search

Difference between revisions of "TCS/FAQ"

< TCS
(created TCS FAQ)
 
m (added categories)
 
Line 13: Line 13:
  
 
  (isDefined(mySampleReference) ? "subElements" "{" mySampleReference "}")
 
  (isDefined(mySampleReference) ? "subElements" "{" mySampleReference "}")
 +
 +
[[Category:FAQ]]
 +
[[Category:TCS]]

Latest revision as of 04:10, 27 July 2007

< To: TCS

TCS FAQ

How to declare optional attributes and references in TCS

To declare optional elements, you should use the following syntax: ( maCondition ? thenSequence : elseSequence)

For example:

"booleanValue" ":" (myBooleanAttribute ? "true" : "false")
(isDefined(mySampleReference) ? "subElements" "{" mySampleReference "}")