I'm trying to get my head around how the Copy element works, I've found the following example online.
Input.xml
Input.xsl
Which gives the following output:
Am I right to say that the stylesheet has matched all of the nodes in the XML and copied the data to the output; or is there something that I'm missing?
Yes, it matches all of the nodes in the input document, it does that recursively. But no, it doesn't copy all of them to the output. Compare the input and the output carefully and you'll see they are different. And that difference is because of one particular line of code.