From: Pierrick B. <pie...@cu...> - 2005-07-06 11:41:51
|
Hi, Answering to myself... Pierrick Brihaye wrote: > but util:registered-functions() returns nothing nor does=20 > util:registered-functions("http://www.w3.org/2003/05/xpath-functions"). Check with the interactive client then with different queries : <foo>{util:registered-functions()}</foo> returns : <foo > text:fuzzy-index-terms text:fuzzy-match-all=20 text:fuzzy-match-any text:index-terms text:match-count text:text-rank=20 util:call util:catch util:collations util:collection-name=20 util:describe-function util:document-id util:document-name=20 util:eXist-version util:eval util:eval-inline util:exclusive-lock=20 util:function util:get-module-description util:index-keys util:log=20 util:md5 util:node-by-id util:node-id util:qname-index-lookup=20 util:registered-functions util:registered-modules util:shared-lock=20 util:system-property example:echo transform:transform xmldb:authenticate=20 xmldb:change-user xmldb:chmod-collection xmldb:chmod-resource=20 xmldb:collection xmldb:collection-exists xmldb:create-collection=20 xmldb:create-user xmldb:created xmldb:delete-user=20 xmldb:document-has-lock xmldb:exists-user xmldb:get-child-collections=20 xmldb:get-child-resources xmldb:get-group xmldb:get-owner=20 xmldb:get-permissions xmldb:get-user-groups xmldb:get-user-home=20 xmldb:is-admin-user xmldb:last-modified xmldb:login=20 xmldb:permissions-to-string xmldb:register-database xmldb:remove=20 xmldb:set-collection-permissions xmldb:set-resource-permissions=20 xmldb:size xmldb:store xmldb:store-files-from-pattern xmldb:update=20 request:create-session request:encode-url request:get-request-data=20 request:get-session-attribute request:get-uploaded-file=20 request:get-uploaded-file-name request:invalidate-session=20 request:parameter-names request:redirect-to request:request-hostname=20 request:request-parameter request:request-servername request:request-uri=20 request:session-attributes request:set-current-user=20 request:set-session-attribute request:unescape-uri fn:QName fn:abs=20 fn:adjust-date-to-timezone fn:adjust-dateTime-to-timezone=20 fn:adjust-time-to-timezone fn:avg fn:base-uri fn:boolean fn:ceiling=20 fn:codepoints-to-string fn:collection fn:concat fn:contains fn:count=20 fn:current-date fn:current-dateTime fn:current-time fn:data=20 fn:day-from-date fn:day-from-dateTime fn:days-from-duration=20 fn:deep-equal fn:distinct-values fn:doc fn:doctype fn:document=20 fn:document-uri fn:empty fn:ends-with fn:error fn:escape-uri=20 fn:exactly-one fn:exists fn:false fn:floor fn:hours-from-dateTime=20 fn:hours-from-duration fn:hours-from-time fn:id fn:index-of=20 fn:insert-before fn:item-at fn:lang fn:last fn:local-name=20 fn:local-name-from-QName fn:lower-case fn:match-all fn:match-any=20 fn:matches fn:max fn:min fn:minutes-from-dateTime=20 fn:minutes-from-duration fn:minutes-from-time fn:month-from-date=20 fn:month-from-dateTime fn:name fn:namespace-uri=20 fn:namespace-uri-from-QName fn:node-name fn:normalize-space fn:not=20 fn:number fn:one-or-more fn:position fn:prefix-from-QName fn:remove=20 fn:replace fn:reverse fn:root fn:round fn:round-half-to-even=20 fn:seconds-from-dateTime fn:seconds-from-duration fn:seconds-from-time=20 fn:starts-with fn:string fn:string-join fn:string-length fn:string-pad=20 fn:string-to-codepoints fn:subsequence fn:substring fn:substring-after=20 fn:substring-before fn:sum fn:timezone-from-date=20 fn:timezone-from-dateTime fn:timezone-from-time fn:tokenize fn:translate=20 fn:true fn:unordered fn:upper-case fn:xcollection fn:year-from-date=20 fn:year-from-dateTime fn:zero-or-one f:add-to-history f:display f:eval=20 f:handleException f:main f:navbar f:string-list-union </ foo > and=20 <foo>{util:registered-functions("http://www.w3.org/2003/05/xpath-function= s")}</foo>=20 returns : <foo > fn:QName fn:abs fn:adjust-date-to-timezone=20 fn:adjust-dateTime-to-timezone fn:adjust-time-to-timezone fn:avg=20 fn:base-uri fn:boolean fn:ceiling fn:codepoints-to-string fn:collection=20 fn:concat fn:contains fn:count fn:current-date fn:current-dateTime=20 fn:current-time fn:data fn:day-from-date fn:day-from-dateTime=20 fn:days-from-duration fn:deep-equal fn:distinct-values fn:doc fn:doctype=20 fn:document fn:document-uri fn:empty fn:ends-with fn:error fn:escape-uri=20 fn:exactly-one fn:exists fn:false fn:floor fn:hours-from-dateTime=20 fn:hours-from-duration fn:hours-from-time fn:id fn:index-of=20 fn:insert-before fn:item-at fn:lang fn:last fn:local-name=20 fn:local-name-from-QName fn:lower-case fn:match-all fn:match-any=20 fn:matches fn:max fn:min fn:minutes-from-dateTime=20 fn:minutes-from-duration fn:minutes-from-time fn:month-from-date=20 fn:month-from-dateTime fn:name fn:namespace-uri=20 fn:namespace-uri-from-QName fn:node-name fn:normalize-space fn:not=20 fn:number fn:one-or-more fn:position fn:prefix-from-QName fn:remove=20 fn:replace fn:reverse fn:root fn:round fn:round-half-to-even=20 fn:seconds-from-dateTime fn:seconds-from-duration fn:seconds-from-time=20 fn:starts-with fn:string fn:string-join fn:string-length fn:string-pad=20 fn:string-to-codepoints fn:subsequence fn:substring fn:substring-after=20 fn:substring-before fn:sum fn:timezone-from-date=20 fn:timezone-from-dateTime fn:timezone-from-time fn:tokenize fn:translate=20 fn:true fn:unordered fn:upper-case fn:xcollection fn:year-from-date=20 fn:year-from-dateTime fn:zero-or-one </ foo > So, the problem lies with the web application, namely in line 44 of=20 http://cvs.sourceforge.net/viewcvs.py/exist/eXist-1.0/webapp/xquery/proce= ss.xq?annotate=3D1.9&sortby=3Dfile. It looks like there is a problem when string() is used with a QNameValue=20 sequence. Cheers, --=20 Pierrick Brihaye, informaticien Service r=E9gional de l'Inventaire DRAC Bretagne mailto:pie...@cu... +33 (0)2 99 29 67 78 |