if ($id) then
    <xf:output ref="id" class="id">
        <xf:label>ID:</xf:label>
    </xf:output>
else 
    ()