Copy element copies only the current node without children and attributes, while copy-of copies everything
File: Data.xml
Compare these constructs.
File: Transform.xslt
copy-of :
copy :
value-of :
Output:
copy-of :
Compare these constructs.
value-of :
Compare these constructs.