yes, the if selects the first thing that follows; if the if-test fails, the second things is selected.

lbjvg wrote:
David - Both versions work.  Thank you very much.

The only caveat is that the scope seems to be whatever immediatly
follows <div ex:if="not(contains(.facet1, 'default value'))"> So, I
had 2 things that followed: <b>facet50: </b>  and  <span
ex:content=".facet50"></span></div> ; and one would be suppressed but
not the other.  So I wrapped both in a span and that solved it:
<div ex:if="not(contains(.facet1, 'default value'))"><span>
<b>facet50: </b><span  ex:content=".facet50"></span></span></div>

Thanks for your help! - Jim



On Nov 19, 2:00 pm, David Huynh <[email protected]> wrote:
  
lbjvg wrote:
    
Hi - I have a database with a lot of default entries.  When I display
a lens view, all of the default values clutter and obscure the
pertinent values.
      
<div ex:role="viewPanel" style="padding: 1em 0.5in;" id="view_panel">
<div ex:role="lens" style="display: none;" id="lens_view" align="left"
      
<div ex:if-exists=".facet1" class="facet1"><b>facet1: </b><span
ex:content=".facet1"></span></div>
...
<div ex:if-exists=".facet50" class="facet50"><b>facet50: </b><span
ex:content=".facet50"></span></div>
      
So, suppose that most of the items contain a large number of default
entries.  I would like to suppress the display of the content if it
equals the default value.  As if there were a statement of the form
ex:if-notEqual="default value" content=".facet1
      
Is there such a statement?
      
If the property is unique (each item has exactly one value of that
property), then you can try

<div ex:if="not(contains(.facet1, 'default value'))"> ... </div>

Otherwise, try

<div ex:if="exists(remove(.facet1, 'default value'))"> ... </div>

David
    

--

You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To post to this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=.


  

--

You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=.

Reply via email to