PageRenderTime 23ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/xquery/get-next-media-id.xql

http://transcriptstudio4isha.googlecode.com/
Unknown | 16 lines | 12 code | 4 blank | 0 comment | 0 complexity | 77c7a927f5bf4cffa143deaa607765b0 MD5 | raw file
 1xquery version "1.0";
 2 
 3declare option exist:serialize "media-type=text/plain";
 4
 5import module namespace media-fns = "http://www.ishafoundation.org/ts4isha/xquery/media-fns" at "media-fns.xqm";
 6
 7let $domain := request:get-parameter("domain", ())
 8let $eventType := request:get-parameter("eventType", ())
 9return
10	if (empty($domain)) then
11		error(xs:QName('illegal-argument-exception'), 'no domain specified')
12	else if (empty($eventType)) then
13		error(xs:QName('illegal-argument-exception'), 'no eventType specified')
14	else
15		media-fns:get-next-media-id($domain, $eventType)
16