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 4539 - [UPD] Section 2.4.5 Transform: rewording
Summary: [UPD] Section 2.4.5 Transform: rewording
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Update Facility (show other bugs)
Version: Working drafts
Hardware: PC Windows XP
: P2 minor
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords: editorial
Depends on:
Blocks:
 
Reported: 2007-05-04 23:37 UTC by Michael Rys
Modified: 2007-08-09 22:55 UTC (History)
0 users

See Also:


Attachments

Description Michael Rys 2007-05-04 23:37:31 UTC
Change "The result of a transform expression is an XDM instance that may include both nodes that were created by the transform expression and other, previously existing nodes." => "The result of a transform expression is an XDM instance that may include both nodes that were created by the transform expression and copies of previously existing nodes."
Comment 1 Don Chamberlin 2007-06-15 21:21:56 UTC
Michael,
Although this bug report is marked as editorial, I do not believe it is editorial. I believe that it is both substantive and incorrect.

The return clause of a transform is not limited to return only copied nodes. The expression in the return clause may include references to original, not-copied nodes, as in this example:

let $oldx := /a/b/x
return
   transform
      copy $newx := $oldx
      modify (do rename $newx as "newx", do replace value of $newx by 47)
      return ($oldx, $newx)
     
Since I believe this bug report to be substantive, I am marking it "Invalid" but not closing it. If you agree with my analysis, please close this bug report.

Regards,
Don Chamberlin (for the Query Working Group)
Comment 2 Michael Rys 2007-06-16 00:22:30 UTC
Thanks Don... If that is the case, having an explicit example would be useful.

Best regards
Michael
Comment 3 Don Chamberlin 2007-08-09 22:55:36 UTC
Michael,
I have added an example to the description of the transform expression as you requested.
Regards,
Don Chamberlin