Changeset 125 for MDService


Ignore:
Timestamp:
01/12/10 12:50:36 (14 years ago)
Author:
ljo
Message:

[ignore] added symmetry for generation and query on path argument.

File:
1 edited

Legend:

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

    r124 r125  
    7575:)
    7676declare function cmd-model:get-result-doc($collection as xs:string, $type-name as xs:string, $depth as xs:integer) as item()* {
    77   let $dummy := if (cmd-model:is-result-available($collection, fn:concat("/", $type-name, xs:string($depth)))) then
     77  let $name-last := text:groups($type-name, "/(\w+)$")[last()],
     78    $new-name := if (fn:empty($name-last)) then $type-name else $name-last,
     79    $dummy := if (cmd-model:is-result-available($collection, fn:concat("/", $new-name, xs:string($depth)))) then
    7880    ()
    7981    else
Note: See TracChangeset for help on using the changeset viewer.