sel:otherwise

Purpose

Defines a set of material to be selected for processing if none of the sel:when elements within the containing sel:select element are selected.

Contained by

Contains

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:sel="http://www.w3.org/2004/06/diselect">
  <head>
    <title>sel:select</title>
  </head>
  <body>
    <sel:select>
      <sel:when expr="device:policy-value('supports.client.framework')='true'">
        <p>This device supports the Client Framework 1.</p>
      </sel:when>
      <sel:otherwise>
        <p>This device does not support the Client Framework 1.</p>
      </sel:otherwise>
    </sel:select>
  </body>
</html>

Related topics