Bugs item #2839389, was opened at 2009-08-18 09:03 Message generated for change (Comment added) made by shcheklein You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=713730&aid=2839389&group_id=129076
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: Query Execution Group: Sedna (current) Status: Open >Resolution: Accepted Priority: 5 Private: No Submitted By: Justin Johansson (justinjohansson) >Assigned to: Ivan Shcheklein (shcheklein) Summary: document-uri function does not yield useful result Initial Comment: Synopsis: The document-uri function does not yield a useful result for non-standalone documents (i.e. when the document is stored in a Sedna collection). Scenario: Load standalone document with LOAD "rose.xml" "rose" Create collection with CREATE COLLECTION "flowers" Load non-standalone document with LOAD "rose.xml" "rose" "flowers" Query document-uri of both documents and same result is returned. document-uri( doc( "rose")) -> returns rose document-uri( doc( "rose", "flowers")) -> returns rose Problem: When a document is a member of a collection, document-uri should return both the collection name and the document name. Work-around: One can discover the name of the collection that contains a specific document with the following code but it is felt that this might be rather inefficient : let $rose-doc := doc( "rose", "flowers") let $coll-names := for $coll in doc( "$collections")/collections/collection return string( $coll/@name) return $coll-names[collection( .)[. is $rose-doc]] Cheers Justin Johansson p.s. Thank you, Sedna Team, for all your excellent work in addressing the various issues/bugs that I've raised recently. ---------------------------------------------------------------------- >Comment By: Ivan Shcheklein (shcheklein) Date: 2009-08-18 11:23 Message: Hi Justin, thank you for this bug report. We know about this issue and we have some ideas on how to implement usefull document URIs in Sedna. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=713730&aid=2839389&group_id=129076 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Sedna-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sedna-discussion
