This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6360 - Small errors in path expressions in id-insert-expr-084/085/086
Summary: Small errors in path expressions in id-insert-expr-084/085/086
Status: CLOSED FIXED
Alias: None
Product: XQuery Update Facility Test Suite
Classification: Unclassified
Component: XQuery Update Facility Test Suite (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 09:05 UTC by Peter M. Fischer
Modified: 2009-01-07 06:56 UTC (History)
0 users

See Also:


Attachments

Description Peter M. Fischer 2009-01-06 09:05:55 UTC
In id-insert-expr-084/085 the outer return clause specifies

namespace-uri-for-prefix("myco",
                             $newemps/myco:employee[1]/dependents[1])

Since for these case, dependents is added via 
insert node <dependents/> before $e/myco:employee[1] (or after in 085),

this should be changed to 

namespace-uri-for-prefix("myco",
                             $newemps/dependents[1]) 

(dropping the myco:employee[1])

This seems to be a copy/paste error

In a similar manner, id-insert-expr-086 specifies the wrong insertion target:
insert node attribute hisco:salaried {"true"} into $e/myco:employees[1]

it should be 
insert node attribute hisco:salaried {"true"} into $e/myco:employee[1]
Comment 1 Andrew Eisenberg 2009-01-06 22:48:35 UTC
I've made the changes that you suggest for id-insert-expr-084/085.

I agree that id-insert-expr-086 specifies the wrong insertion target. I've fixed this with:

insert node attribute hisco:salaried {"true"} into $e

Please close this bug report if you agree with this resolution.