From: Arsen A. G. <ar...@so...> - 2005-05-04 06:45:37
|
Hello. I'm trying to do the following: Flow.js: cocoon.sendPage("somepage", {"document": doc}) then (sitemap.xmap) <map:generate type="xupdate" src="xq/Update.xq"> <map:parameter name="doc" value="flow-attribute:document"/> </map:generate> then in Update.xq I got $doc variable of type xs:string instead of node (), element(). When I'm doing same using session (passing same document from flowscript to xupdate script) it seems to work (I can include this document using ${request:get-session-attribute('doc')}, but I can't perform any XPath on this object. Any kind of XPath expression ($request:get-session- attribute('doc')/* raise NullPointerException. I'm using Cocoon 2.1.6 with eXist 1.02b. -- Sincerely, Arsen A. Gutsal SOFTSKY Ltd CEO/Executive SOFTSKY - Cost effective Software Development |