Hello,
I have uploaded 50 XML files on the Marklogic DB and the script is working
fine, but if I upload one more file (say 51st file) then it shows some
application error. What might be the problem or what do i need to change in
the script?
I would like to get some suggestion regarding this. Thanks.
*Error Message :*
XDMP-ARGTYPE: normalize-space((doc("/sam/126683.xml")/book/title/text()[1],
doc("/sam/126683.xml")/book/title/text()[2])) -- arg1 is not of type
xs:string?
*Script :*
define function chapno ($str as xs:string) {
for $x in xdmp:directory("/sam/") where
normalize-space($x/book/title/text()) eq $str
order by $x/[EMAIL PROTECTED] ascending
return
let $y := $x/book/title/@id
return $y
}
chapno("INTRODUCTION")
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general