Changeset 744 for MDRepository


Ignore:
Timestamp:
10/04/10 10:20:16 (14 years ago)
Author:
ljo
Message:

queryModel - Only give the values if text-count is greater than 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDRepository/trunk/xquery/cmd-model.xqm

    r743 r744  
    6363            return
    6464              cmd-model:elem-r($path-nodes, concat($path, '/', $elname), $max-depth, $depth - 1),
    65               if ($max-depth eq 1) then cmd-model:values($path-nodes) else ())
     65              if ($max-depth eq 1 and $text-count gt 0) then cmd-model:values($path-nodes) else ())
    6666          else 'maxdepth'
    6767        }</Term>
Note: See TracChangeset for help on using the changeset viewer.