title: How to use inline conditional (if then else) in XSLT?
body: <p>Is it possible to do inline conditionals (if then else) in XSLT? Something like:</p>
  
  <pre><code>&lt;div id="{if blah then blah else that}"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Or a real use-case/example:</p>
  
  <pre><code>&lt;div id="{if (@ID != '') then '@ID' else 'default'}"&gt;&lt;/div&gt;
  </code></pre>