When using "//" at the beginning of a location path, "//" selects all nodes in the document of the specified type.
When using "//" in the middle of a location path, "//" selects all nodes which appear in the node selected with the first part of the location path.
File: Data.xml
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
id=
id=
id=
id=
BBB id=b1BBB id=b2BBB id=b3BBB id=b4BBB id=b5CCC id=c1CCC id=c2DDD id=d1AAA id=a1AAA id=a2