source: TI07-MOLES/trunk/eXist specific/xqueryLib/Utilities/utility_xquery_lib.xquery @ 2463

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI07-MOLES/trunk/eXist specific/xqueryLib/Utilities/utility_xquery_lib.xquery@2463
Revision 2463, 551 bytes checked in by ko23, 12 years ago (diff)

Extended indexing/moles.xconf and moved xqueryLib to somewhere more sensible

Line 
1module namespace utillib='http://ndg.nerc.ac.uk/xquery/lib/utilities';
2
3declare variable $utillib:moles_id_separator as xs:string {'__'};
4
5declare function utillib:strip-namespace($e as element()) as element()
6(: Removes namespace info from the element tree being addressed so that it will lie in the default namespace  :)
7{
8element {QName('', local-name($e))} 
9{
10let $parent :=$e
11let $childcount := count($parent/*)
12return
13if ($childcount>0) then
14for $child in ($e/*)
15return
16utillib:strip-namespace($child)
17else (data($e))
18}
19};
Note: See TracBrowser for help on using the repository browser.