From: SourceForge.net <no...@so...> - 2007-07-22 22:35:49
|
Bugs item #1758589, was opened at 2007-07-22 23:35 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=1758589&group_id=17691 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Adam Retter (deliriumsky) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with request:get-data() - in-memory nodes Initial Comment: I have an XML document very much like this - <akomantoso> <act> ... </act> </akomantoso> If I POST this document onto a very simple XQuery that looks like this - node-name(request:get-data()/child::node()) This should give me the result "act", however it throws a cardinality error, claiming that node-name() expects a single node, but received 3 nodes. After some debugging, visibly only 1 node is returned from request:get-data()/child::node(). A temporary workaround is to use - node-name(request:get-data()/child::node()[position() eq 2]) Which then returns "act". Also trying to use the workaround - node-name(request:get-data()/child::node()[2]) Fails with node-name() receiving 0 nodes to process. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=1758589&group_id=17691 |