Skip to content

Commit

Permalink
Add warning if index checking not available
Browse files Browse the repository at this point in the history
Cf. #3
  • Loading branch information
wlpotter committed Jan 5, 2022
1 parent fa48700 commit 1cfd6c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transform.xq
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ let $nothing := if($config:file-or-console = "file") then file:create-dir($confi



return if(functx:atomic-type($inputCollection) = "xs:string")
return (if(not($config:index-of-existing-uris[1] instance of xs:string)) then $config:index-of-existing-uris,
if(functx:atomic-type($inputCollection) = "xs:string")
then $inputCollection (: returns the error string if $config:input-type was assigned wrong :)
else
for $inDoc in $inputCollection
Expand Down

0 comments on commit 1cfd6c6

Please sign in to comment.