Comment 9 for bug 1232708

Revision history for this message
Vassili Platonov (vassilip) wrote :

I think that this examination will help to solve a problem:

The <if:choose> element doesn't provide fallback content in some cases. Look at the page https://help.ubuntu.com/13.10/ubuntu-help/color.html and compare it with https://help.gnome.org/users/gnome-help/stable/color.html . Under the title "How do I assign profiles to devices?" there should be a description for platform:unity "Look in System Settings->Color for the option to change this." or fallback description "Look in Settings->Color for the option to change this." But description doesn't display even as fallback content.

Code for this page is located at C/color-assignprofiles.page. The specification of projectmallard.org/if/1.0 allows two different ways to provide fallback content for <if:choose> elements. Instead of using an <if:else> element, you can put fallback block content directly in the <if:choose> element. Supporting tools will treat this exactly as if you had used an <if:else> element, but non-supporting tools will show this fallback content.

But this doesn't occur. The <if:choose> element is located in the <info> element. I tried to use it in the <desc> element but then description displays both content at the same time. It seems that conditionals (eg. <if:choose>) can not be used in information elements such as <info> or <desc> as they are not general block elements.

Is there a restrictions or even a bug in Mallard? If so, this will narrow our search for solution.